Tester\Runner\Job::getFile PHP Метод

getFile() публичный Метод

Returns test file path.
public getFile ( ) : string
Результат string
    public function getFile()
    {
        return $this->file;
    }

Usage Example

Пример #1
1
 private function assessOutputMatch(Job $job, $content)
 {
     if (!Tester\Assert::isMatching($content, $job->getOutput())) {
         Dumper::saveOutput($job->getFile(), $job->getOutput(), '.actual');
         Dumper::saveOutput($job->getFile(), $content, '.expected');
         return array(Runner::FAILED, 'Failed: output should match ' . Dumper::toLine(rtrim($content)));
     }
 }