Zend Framework: Incubator Testing

In case you missed it, the Zend Framework Subversion revision 532 is important as Darby has put in place the test harness fiiles required for testing the incubator code. Thanks Darby!

For the tests to pass you must have the following on your include path:

  • /path/to/PEAR
  • /path/to/zend_framework/library
  • /path/to/zend_framework/incubator
  • /path/to/zend_framework/tests

You can then run the tests from the incubator/tests directory using

php -f AllTests.php

. If you don't want to change your php.ini file, then

php -d include_path=".:/path/to/PEAR:/path/to/zend_framework/library:/path/to/zend_framework/incubator:/path/to/zend_framework/tests" -f AllTests.php

also works :)

Note that the tests fail in Zend_Cache at the moment though, so you'll want to comment out

$suite->addTest(Zend_Cache_AllTests::suite());

in incubator/tests/Zend/AllTest.php!

2 Responses to “Zend Framework: Incubator Testing”

  1. 1 Nico Edtinger

    Damn I was to late adding my tests ;) Had them ready on tuesday, but was to lazy to check them in earlier.

  2. 2 Rob...

    *grin*
    It's never too late for tests!

The views expressed in these comments are not the views of the publisher. However, we believe in the rights of others to express their legitimate views and concerns. Any legitimate complaint emailed to rob@akrabat.com will be seriously considered and the post reviewed as desirable and necessary.

Leave a Reply

Pre order