Testing PHP

  1. Starting the server
  2. Almost manually testing add()
  3. Print expected values as well
  4. Compare actual with expected values and print only pass/fail
  5. Refactor to get assertTrue
  6. Introduction to the PHP SimpleTest framework
  7. assertTrue in SimpleTest
  8. SimpleTest showing success
  9. assertEqual showing the actual values
  10. SimpleTest showing description of error
  11. PHP SimpleTest
  12. Testing PHP on the command line
  13. Testing PHP Application
  14. Check web page content
  15. Check web page title
  16. Check web page content a failure
  17. Checking forms
  18. Submit form
  19. Check for text that should not be there.