You searched for phpunit

  1. Build Automation with Composer Scripts

    \Installer::postPackageInstall", "phpunit -c /tests", "./bin/" ] } } I've defined some scripts for the pre-install-cmd, post-install-cmd, and post-package-install events. As you can see, we can define any combination
  2. What Happened when we Talked PHP with the Experts

    … I believe PHPUnit is where it's at. I've mostly used SimpleTest in the past, but I don't recommend it, and don't let the name fool you… it's not simpler :) MikeH  Good. I started to dabble with that one a few years ago. LornaJan...  And what @HAWK said - if you're
  3. PHP Namespaces

    and class names using underscores; the mail class in the blog component was named Blog_Mail. This practice led to many long, and sometimes confusing, class names. Consider the name of a class in the PHPUnit framework, PHPUnit_Framework_MockObject_Matcher_StatelessInvocation. This obviously isn't
  4. Rapid Application Development with CakePHP

    is used optionally for PHPUnit tests). Each variable is an associative array of settings that should be familiar to you: hostname, login, password, database, and prefix. The datasource key sets which database driver to use and the default is MySQL (Database/Mysql). CakePHP uses PDO and so it also
  5. Effortless (or Better!) Bug Detection with PHP Assertions

    .org/. Unit Testing Modern development methodologies such as Extreme Programming advocate that you write unit tests before you write code. Whether or not you want to go this far, you'll find you spend less time writing unit tests if you have help automating their execution. Consider using PhpUnit
  6. Test Driven Development: Are You Test-infected?

    often go hand in hand. TDD usually starts with a unit test framework. That is not to say that test-driven development is unit testing - it's not. Because I develop primarily with PHP, I chose SimpleTest, written by Marcus Baker. PHP offers another popular unit test framework called PHPUnit, but I opted
  7. Getting Started with PEAR - PHP's Low Hanging Fruit

    account). Option 6: Test Directory - Place any unit test scripts provided with the package, normally for execution under PEAR::PHPUnit, here. Again, something like $prefixtests for Windows ($prefix/test -- LAMP). That's the hard part done. Continue following the prompts and the Installer