Changeset 2703
- Timestamp:
- 08/25/08 09:46:05 (5 months ago)
- Location:
- branches/felix-testing-implementation
- Files:
-
- 1 added
- 3 modified
-
samples/app/config/autoload.xml (modified) (1 diff)
-
samples/test/tests.php (modified) (1 diff)
-
samples/test/tests/unit/PriceFinderModelTest.php (added)
-
src/testing/AgaviTesting.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/felix-testing-implementation/samples/app/config/autoload.xml
r2371 r2703 10 10 11 11 <autoload name="AgaviSampleAppUser">%core.lib_dir%/user/AgaviSampleAppUser.class.php</autoload> 12 13 <!-- added here so that the tests can find the proper base model, currently they don't load the module specific autoload --> 14 <autoload name="AgaviSampleAppDefaultBaseModel">%core.module_dir%/Default/lib/model/AgaviSampleAppDefaultBaseModel.class.php</autoload> 12 15 </autoloads> 13 16 </configuration> -
branches/felix-testing-implementation/samples/test/tests.php
r2238 r2703 5 5 require('config.php'); 6 6 7 AgaviTesting::bootstrap('testing-david'); 8 7 AgaviTesting::bootstrap('testing-felix'); 9 8 AgaviTesting::dispatch(); 10 9 -
branches/felix-testing-implementation/src/testing/AgaviTesting.class.php
r2238 r2703 76 76 AgaviConfig::set('testing.environment', $environment, true, true); 77 77 78 ini_set('include_path', get_include_path().PATH_SEPARATOR.dirname(dirname(__FILE__))); 79 78 80 $_ENV['AGAVI'] = AgaviConfig::toArray(); 79 81 } 80 82 81 83 public function dispatch() 82 84 { 83 $suite = new PHPUnit_Framework_TestSuite(); 84 85 $suite = new AgaviUnitTestSuite('Foo'); 86 //require_once 'tests/unit/PriceFinderModelTest.php'; 87 //$test = new PriceFinderModelTest(); 88 //$test->setName('PriceFinder Model'); 89 //$suite->addTest($test); 90 $suite->addTestFile('tests/unit/PriceFinderModelTest.php'); 91 92 85 93 // TODO: read test suites from xml or so 86 94 87 95 $runner = PHPUnit_TextUI_TestRunner::run($suite); 88 96 }

