Skip to main content
  • Book
  • © 2016

Learn CakePHP

With Unit Testing

Apress
  • A unique approach to learning CakePHP via unit testing and test driven development (TDD)
  • CakePHP is one of today's most popular PHP frameworks
  • Author is a PHP, CakePHP and TDD expert

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 24.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (14 chapters)

  1. Front Matter

    Pages i-xxiv
  2. What Is CakePHP?

    • Rādhārādhya Dāsa
    Pages 2-6
  3. What Is Unit Testing?

    • Rādhārādhya Dāsa
    Pages 8-13
  4. Clean Code

    • Rādhārādhya Dāsa
    Pages 14-17
  5. Test-Driven Development

    • Rādhārādhya Dāsa
    Pages 18-21
  6. Development Cycle

    • Rādhārādhya Dāsa
    Pages 22-26
  7. Preparing for Testing

    • Rādhārādhya Dāsa
    Pages 28-47
  8. Fixtures

    • Rādhārādhya Dāsa
    Pages 48-57
  9. Model Tests

    • Rādhārādhya Dāsa
    Pages 58-64
  10. Controller Tests 1

    • Rādhārādhya Dāsa
    Pages 66-78
  11. Mocks

    • Rādhārādhya Dāsa
    Pages 80-87
  12. Controller Tests 2

    • Rādhārādhya Dāsa
    Pages 88-93
  13. Test Suites

    • Rādhārādhya Dāsa
    Pages 94-96
  14. Testing from Command Line

    • Rādhārādhya Dāsa
    Pages 98-103
  15. Goodies

    • Rādhārādhya Dāsa
    Pages 104-110
  16. Back Matter

    Pages 111-114

About this book

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.  









Authors and Affiliations

  • Somogyvamos, Hungary

    Rādhārādhya Dāsa

About the author

rrd started to code for the web in plain HTML in 1998 at the college. As the web evolved, he turned to PHP, then to Javascript. As mobile technologies arrived, he started to play with Java for android development.
He’s a big fan of CakePHP and jQuery frameworks, open source, and pizza. All of them are there in his web development.


Bibliographic Information

Buy it now

Buying options

eBook USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 24.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access