// you’re reading...

Technology

OSCON 2009 – Quality Assurance in PHP Projects

Quality Assurance in PHP Projects
Sebastian Bergmann (thePHP.cc)

Another awesome presentation and workshop today.

There are so many take-aways, I’m not sure what to add in. I took five pages of notes.

PHPUnit Best Practices:

  • Use the setup() method
  • Make functions for code that is reused.
  • Make test for edge cases.
  • Use –testdox to display code complete.
  • Use –skeleton-test for existing code.
  • Use –coverage-html (requires xdebug).
  • Use “mock” objects
  • Use vfsStream to test file I/O for in-RAM tests HOT!
  • Use extension “DatabaseTestCase”
    • keeps database state, need ot describe valide state, though.
    • Compares different states; can work with text files too, e.g. xml, csv…
    • Requires PDO
  • Integrate with Selenium to run HTML export files from Firefox.

Measuring Software Quality Tools:

  • phploc
  • phpcpd
  • PHP_Depend
  • phpmd
  • PHP_Codesniffer
  • bytekit_cli

Discussion

No comments for “OSCON 2009 – Quality Assurance in PHP Projects”

Post a comment

 

July 2009
S M T W T F S
« Jun   Sep »
 1234
567891011
12131415161718
19202122232425
262728293031