0 && sizeof($line) > 0) $data[] = $line; $cpt++; } } else throw new Exception('the file '.htmlspecialchars($path).' is not readable.'); } else throw new Exception('the file '.htmlspecialchars($path).' doesn\'t exists.'); return $data; } public function provideData($path_fixtures, $classname, $testname) { $filename = htmlspecialchars($testname.'.'.self::EXTENSION); $array = $this->getData(dirname(__FILE__).DIRECTORY_SEPARATOR.self::FIXTURES_DIRECTORY.$path_fixtures.DIRECTORY_SEPARATOR.$classname.DIRECTORY_SEPARATOR.$filename); return $array; } }