[lang-ref] ( path_exists ) ( php )

<?php
public function testPathExists(): void
{
	// file_exists
	$this->assertTrue(file_exists('/etc'));
	$this->assertTrue(file_exists('/etc/hosts'));
	$this->assertFalse(file_exists('/no/such/file'));
}