lithium\test\Unit::assertFileExists PHP Метод

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

$this->assertFileExists(__FILE__); // succeeds $this->assertFileExists('/tmp/bar.txt'); // fails
См. также: lithium\test\Unit::assert()
public assertFileExists ( string $actual, string | boolean $message = '{:message}' ) : boolean
$actual string Absolute path to the actual file.
$message string | boolean
Результат boolean `true` if the assertion succeeded, `false` otherwise.
    public function assertFileExists($actual, $message = '{:message}')
    {
        return $this->assert(file_exists($actual), $message, array('expected' => $actual, 'result' => file_exists($actual)));
    }