Asserts that a file exists.
public static assertFileExists ( string $filename, string $message = '' ) | ||
$filename | string | |
$message | string |
public function testFileExists() { $this->assertFileExists('test.txt'); }
public function testImageExists() { $this->assertFileExists('images/photo.jpg'); }PHPUnit_Framework_Assert is a part of the PHPUnit package.
public static assertFileExists ( string $filename, string $message = '' ) | ||
$filename | string | |
$message | string |