Esempio n. 1
0
 public function loadTests($path = null)
 {
     $testLoader = new TestLoader($this->settings['path']);
     $path ? $testLoader->loadTest($path) : $testLoader->loadTests();
     $tests = $testLoader->getTests();
     foreach ($tests as $test) {
         $this->addToSuite($test);
     }
 }
Esempio n. 2
0
 /**
  * @group core
  */
 public function testLoadFileWithFewCases()
 {
     $this->testLoader->loadTest('SimpleNamespacedTest.php');
     $this->assertEquals(3, count($this->testLoader->getTests()));
 }