您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Task_Progress_Test.php 696 B

3 年前
12345678910111213141516171819202122232425262728293031323334353637383940
  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. }