You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 regels
696 B

  1. <?php
  2. /**
  3. * PhpUnderControl_TaskProgress_Test
  4. *
  5. * 针对 ../Progress.php Task_Progress 类的PHPUnit单元测试
  6. *
  7. * @author: dogstar 20150519
  8. */
  9. require_once dirname(__FILE__) . '/test_env.php';
  10. if (!class_exists('Task_Progress')) {
  11. require dirname(__FILE__) . '/../Progress.php';
  12. }
  13. class PhpUnderControl_TaskProgress_Test extends PHPUnit_Framework_TestCase
  14. {
  15. public $taskProgress;
  16. protected function setUp()
  17. {
  18. parent::setUp();
  19. $this->taskProgress = new Task_Progress();
  20. }
  21. protected function tearDown()
  22. {
  23. }
  24. /**
  25. * @group testRun
  26. */
  27. public function testRun()
  28. {
  29. $rs = $this->taskProgress->run();
  30. }
  31. }