Book description
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.
You'll 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 you'll 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
Who this book is for
This book is for experienced PHP programmers and web developers who have little or no experience using CakePHP and/or unit testing.
Table of contents
- Cover
- Frontmatter
- 1. What Is CakePHP?
- 2. What Is Unit Testing?
- 3. Clean Code
- 4. Test-Driven Development
- 5. Development Cycle
- 6. Preparing for Testing
- 7. Fixtures
- 8. Model Tests
- 9. Controller Tests 1
- 10. Mocks
- 11. Controller Tests 2
- 12. Test Suites
- 13. Testing from Command Line
- 14. Goodies
- Backmatter
Product information
- Title: Learn CakePHP: With Unit Testing, Second Edition
- Author(s):
- Release date: August 2016
- Publisher(s): Apress
- ISBN: 9781484212127
You might also like
book
Mastering The Faster Web with PHP, MySQL, and JavaScript
About This Book Make web applications run faster by using advanced PHP, SQL and JavaScript techniques …
book
PHP 7: Real World Application Development
Use new features of PHP 7 to solve practical, real-world problems faced by PHP developers like …
book
Building PHP Applications with Symfony™, CakePHP, and Zend® Framework
The first detailed, unbiased comparison of the three leading PHP frameworks Web developers have been eager …
video
Modern JavaScript From The Beginning
Learn and Build Projects with Pure JavaScript (No Frameworks or Libraries) About This Video Understanding of …