diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-22 22:39:41 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-22 22:39:41 +0200 |
commit | 7c65b2f40ea9242260eac5a746863f5925423861 (patch) | |
tree | 6c516057baa4356fde43f8d79517571bc8f0bfa2 /tests/test_tools/phpunit_bootstrap.php | |
parent | 60c6bfa6f7caeb122cb8fa820506bdd1c54a842e (diff) |
Phing: added target for phpunit+selenium
Functional tests were using an old selenium RC version. Ported them to
use phpunit + selenium; next: opensauce
Diffstat (limited to 'tests/test_tools/phpunit_bootstrap.php')
-rw-r--r-- | tests/test_tools/phpunit_bootstrap.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_tools/phpunit_bootstrap.php b/tests/test_tools/phpunit_bootstrap.php new file mode 100644 index 00000000..dc2ce948 --- /dev/null +++ b/tests/test_tools/phpunit_bootstrap.php @@ -0,0 +1,23 @@ +<?php +/** + * A few common settings for all unit tests. + * + * Also remember do define the @package attribute for your test class to make it appear under + * the right package in unit test and code coverage reports. + */ + +define('PRADO_TEST_RUN', true); +define('PRADO_FRAMEWORK_DIR', dirname(__FILE__).'/../../framework'); +define('VENDOR_DIR', dirname(__FILE__).'/../../vendor'); +set_include_path(PRADO_FRAMEWORK_DIR.PATH_SEPARATOR.get_include_path()); + +if (!@include_once VENDOR_DIR.'/autoload.php') { + die('You must set up the project dependencies, run the following commands: + wget http://getcomposer.org/composer.phar + php composer.phar install'); +} + +require_once(PRADO_FRAMEWORK_DIR.'/prado.php'); + +// for FunctionalTests +require_once(__DIR__.'/PradoGenericSeleniumTest.php');
\ No newline at end of file |