public function getDataSet() { return new \PHPUnit_Extensions_Database_DataSet_YamlDataSet(\Database\Module::getPath("data/Test/AbstractTable.yaml")); }
/** * Load dataset from data/Test/Classname[/$testName].yaml * * @param string $testName Test name. If NULL, the fixture dataset for the test class is loaded. * @return \PHPUnit_Extensions_Database_DataSet_IDataSet */ protected function _loadDataSet($testName = null) { $class = $this->_getClass(); $class = substr($class, strrpos($class, '\\') + 1); // Remove namespace $file = "data/Test/{$class}"; if ($testName) { $file .= "/{$testName}"; } return new \PHPUnit_Extensions_Database_DataSet_YamlDataSet(\Database\Module::getPath("{$file}.yaml")); }