[lang-ref] ( file_exists ) ( php )
<?php
public function testFileExists(): void
{
// is_file
$this->assertTrue(is_file('/etc/hosts'));
$this->assertFalse(is_file('/no/such/file'));
}
<?php
public function testFileExists(): void
{
// is_file
$this->assertTrue(is_file('/etc/hosts'));
$this->assertFalse(is_file('/no/such/file'));
}