public function seeFileFound($filename, $path = '')
    {
        if ($path === '' && file_exists($filename)) {
            $this->openFile($filename);
            \PHPUnit\Framework\Assert::assertFileExists($filename);
            return;
        }

        $found = $this->findFileInPath($filename, $path);

        if ($found === false) {
            $this->fail("File \"$filename\" not found at \"$path\"");
        }

        $this->openFile($found);
        \PHPUnit\Framework\Assert::assertFileExists($found);
    }
public function seeFileFound($filename, $path = '')
    {
        if ($path === '' && file_exists($filename)) {
            $this->openFile($filename);
            \PHPUnit\Framework\Assert::assertFileExists($filename);
            return;
        }

        $found = $this->findFileInPath($filename, $path);

        if ($found === false) {
            $this->fail("File \"$filename\" not found at \"$path\"");
        }

        $this->openFile($found);
        \PHPUnit\Framework\Assert::assertFileExists($found);
    }
public function seeFileFound ( $ filename , $ path = '' ) { if ( $ path === '' && file_exists ( $ filename ) ) { $ this -> openFile ( $ filename ) ; \ PHPUnit \ Framework \ Assert :: assertFileExists ( $ filename ) ; return ; } $ found = $ this -> findFileInPath ( $ filename , $ path ) ; if ( $ found === false ) { $ this -> fail ( "File \"$filename\" not found at \"$path\"" ) ; } $ this -> openFile ( $ found ) ; \ PHPUnit \ Framework \ Assert :: assertFileExists ( $ found ) ; }
Checks if file exists in path.
Opens a file when it's exists

``` php
<?php
$I->seeFileFound('UserModel.php','app/models');
?>
```

@param string $filename
@param string $path
Checks if file exists in path . Opens a file when it s exists