Task_Progress_Test.php 612 B

123456789101112131415161718192021222324252627282930313233343536
  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__) . '/bootstrap.php';
  10. class PhpUnderControl_TaskProgress_Test extends PHPUnit_Framework_TestCase
  11. {
  12. public $taskProgress;
  13. protected function setUp()
  14. {
  15. parent::setUp();
  16. $this->taskProgress = new PhalApi\Task\Progress();
  17. }
  18. protected function tearDown()
  19. {
  20. }
  21. /**
  22. * @group testRun
  23. */
  24. public function testRun()
  25. {
  26. $rs = $this->taskProgress->run();
  27. }
  28. }