Changeset 6859
- Timestamp:
- 12/31/07 17:14:16 (1 year ago)
- Files:
-
- branches/1.1/test/bin/prove.php (modified) (1 diff)
- branches/1.1/test/bootstrap/task.php (modified) (1 diff)
- branches/1.1/test/unit/task/cache/sfCacheClearTaskTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/test/bin/prove.php
r5319 r6859 38 38 // unit tests 39 39 $h->register_glob($h->base_dir.'/unit/*/*Test.php'); 40 $h->register_glob($h->base_dir.'/unit/*/*/*Test.php'); 40 41 $h->register_glob($h->base_dir.'/../lib/plugins/*/test/unit/*Test.php'); 41 42 $h->register_glob($h->base_dir.'/../lib/plugins/*/test/unit/*/*Test.php'); branches/1.1/test/bootstrap/task.php
r4743 r6859 14 14 require_once(sfConfig::get('sf_symfony_lib_dir').'/command/sfSymfonyCommandApplication.class.php'); 15 15 16 class sfSymfonyCommandApplicationTest extends sfSymfonyCommandApplication17 {18 public function initialize($symfonyLibDir, $symfonyDataDir)19 {20 $this->initializeEnvironment(sfConfig::get('sf_symfony_lib_dir'), sfConfig::get('sf_symfony_data_dir'));21 }22 }23 24 16 $tmpDir = sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.'sf_'.rand(11111, 99999); 25 17 mkdir($tmpDir, 0777, true); 26 18 chdir($tmpDir); 27 19 28 $application = new sfSymfonyCommandApplicationTest(); 29 $application->initialize(sfConfig::get('sf_symfony_lib_dir'), sfConfig::get('sf_symfony_data_dir')); 20 $application = new sfSymfonyCommandApplication(new sfEventDispatcher(), new sfFormatter(), array( 21 'symfony_lib_dir' => sfConfig::get('sf_symfony_lib_dir'), 22 'symfony_data_dir' => sfConfig::get('sf_symfony_data_dir'), 23 )); 30 24 31 25 register_shutdown_function('sf_shutdown_task_test'); branches/1.1/test/unit/task/cache/sfCacheClearTaskTest.php
r4957 r6859 13 13 $t = new lime_test(2, new lime_output_color()); 14 14 15 $task = new sfGenerateProjectTask(); 15 $dispatcher = new sfEventDispatcher(); 16 $formatter = new sfFormatter(); 17 18 $task = new sfGenerateProjectTask($dispatcher, $formatter); 16 19 $task->run(array('test')); 17 $task = new sfGenerateAppTask( );20 $task = new sfGenerateAppTask($dispatcher, $formatter); 18 21 $task->run(array('frontend')); 19 22 … … 27 30 $t->ok(file_exists($file), 'The test file is in the cache'); 28 31 29 $task = new sfCacheClearTask( );32 $task = new sfCacheClearTask($dispatcher, $formatter); 30 33 $task->run(); 31 34