Esempio n. 1
0
 /** {@inheritdoc} */
 public function getSchemaFilename()
 {
     return \Model\Module::getPath('data/RelaxNG/PackageMetadata.rng');
 }
Esempio n. 2
0
 /**
  * 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, strpos($class, '\\'));
     // Remove 'Model' prefix
     $file = str_replace('\\', '/', "data/Test{$class}");
     if ($testName) {
         $file .= "/{$testName}";
     }
     return new \PHPUnit_Extensions_Database_DataSet_YamlDataSet(\Model\Module::getPath("{$file}.yaml"));
 }