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);
     }
 }
Beispiel #2
0
 /**
  * @group core
  */
 public function testLoadFileWithFewCases()
 {
     $this->testLoader->loadTest('SimpleNamespacedTest.php');
     $this->assertEquals(3, count($this->testLoader->getTests()));
 }