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