Пример #1
0
 /**
  * @test
  * @link http://redmine.piece-framework.com/issues/247
  */
 public function decodesUrlEncodedTestingClasses()
 {
     $testingClass = 'フーTest';
     $config = new Stagehand_TestRunner_Config();
     $config->addTestingClass(urlencode($testingClass));
     $this->assertTrue($config->isTestingClass($testingClass));
 }
Пример #2
0
 /**
  * @param SimpleTestCase $testCase
  * @return integer
  * @since Method available since Release 2.11.1
  */
 public function countTestsInTestCase(SimpleTestCase $testCase)
 {
     $tests = $this->getTestsInTestCase($testCase);
     $testCount = 0;
     if ($this->config->testsOnlySpecified()) {
         if ($this->config->testsOnlySpecifiedMethods) {
             foreach ($tests as $method) {
                 if ($this->config->isTestingMethod(get_class($testCase), $method)) {
                     ++$testCount;
                 }
             }
         } elseif ($this->config->testsOnlySpecifiedClasses) {
             if ($this->config->isTestingClass(get_class($testCase))) {
                 $testCount = count($tests);
             }
         }
     } else {
         $testCount = count($tests);
     }
     return $testCount;
 }
Пример #3
0
 /**
  * @param string $testCase
  * @param string $method
  * @return boolean
  */
 public function shouldInvoke($testCase, $method)
 {
     return $this->config->isTestingMethod($testCase, $method);
 }
 /**
  * @param string $testCase
  * @param string $method
  * @return boolean
  */
 public function shouldInvoke($testCase, $method)
 {
     return $this->config->inClassesToBeTested($testCase);
 }