توضیحاتی در مورد کتاب :
توسعه برنامه های PHP خود را با استفاده از چارچوب توسعه برنامه وب محبوب CakePHP و تست واحد تسریع کنید. این کتاب کوتاه به شما نشان میدهد که چگونه میتوانید توسعه آزمایشمحور را با وسایل، تستهای مدل، تستهای کنترلکننده، ماکها و مجموعههای آزمایشی انجام دهید. Learn CakePHP شامل همه چیزهایی است که برای شروع کار با چارچوب CakePHP برای ساختن سریعتر و بهتر برنامه های کاربردی وب مبتنی بر PHP نیاز دارید.
شما با تست واحد و نحوه پیاده سازی آن در CakePHP آشنا خواهید شد. این رویکرد به کدنویسی منجر به کد بهتر، برنامه های کاربردی بهتر و عادات برنامه نویسی بهتر می شود. با این دانش، مهارتهای PHP شما قویتر میشود و به شما امکان میدهد کدهای بیشتر و بهبودیافته بنویسید. آنچه یاد میگیرید
تست واحد و CakePHP چیست و چگونه این دو را کنار هم قرار دهید
کدنویسی تمیز چیست
TDD چیست و چرخه توسعه با استفاده از این رویکرد
نحوه کار با فیکسچرها، تستهای مدل، تماسهای متنی، تستهای کنترلکننده و موارد دیگر
نحوه انجام ماکها، مجموعههای تست، تست از خط فرمان و موارد دیگر
نحوه کار با پوشش کد، داده های تجهیزات و روش های خصوصی
فهرست مطالب :
Front Matter....Pages i-xxiv
What Is CakePHP?....Pages 2-6
What Is Unit Testing?....Pages 8-13
Clean Code....Pages 14-17
Test-Driven Development....Pages 18-21
Development Cycle....Pages 22-26
Preparing for Testing....Pages 28-47
Fixtures....Pages 48-57
Model Tests....Pages 58-64
Controller Tests 1....Pages 66-78
Mocks....Pages 80-87
Controller Tests 2....Pages 88-93
Test Suites....Pages 94-96
Testing from Command Line....Pages 98-103
Goodies....Pages 104-110
Back Matter....Pages 111-114
توضیحاتی در مورد کتاب به زبان اصلی :
Accelerate your development of PHP applications using the popular CakePHP web application development framework and unit testing. This short book shows you how to carry out test-driven development with fixtures, model tests, controller tests,mocks, and test suites. Learn CakePHP contains all you need to get started with the CakePHP framework to build faster, better PHP-based web applications.
Youll learn about unit testing and how to implement it in CakePHP. This approach to coding leads to better code, better applications, and better programming habits. With this knowledge your PHP skills will go from strength to strength allowing you to write more and improved code.What youll learn
What is unit testing and CakePHP and how to put the two together
What is clean coding
What is TDD and the development cycle using this approach
How to work with fixtures, model tests, text callbacks, controller tests, and more
How to do mocks, test suites, testing from the command line and more
How to work with code coverage, fixtures data, and private methods