Asserts that a file exists.
@since Method available since Release 3.0.0
string $filename:
string $message:
public static function assertFileExists($filename, $message = '') {
if (!is_string($filename)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
}
$constraint = new PHPUnit_Framework_Constraint_FileExists();
self::assertThat($filename, $constraint, $message);
}