public function dontSeeFileFound($filename, $path = '')
    {
        if ($path === '') {
            \PHPUnit\Framework\Assert::assertFileNotExists($filename);
            return;
        }

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

        if ($found === false) {
            //this line keeps a count of assertions correct
            \PHPUnit\Framework\Assert::assertTrue(true);
            return;
        }

        \PHPUnit\Framework\Assert::assertFileNotExists($found);
    }
public function dontSeeFileFound($filename, $path = '')
    {
        if ($path === '') {
            \PHPUnit\Framework\Assert::assertFileNotExists($filename);
            return;
        }

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

        if ($found === false) {
            //this line keeps a count of assertions correct
            \PHPUnit\Framework\Assert::assertTrue(true);
            return;
        }

        \PHPUnit\Framework\Assert::assertFileNotExists($found);
    }
public function dontSeeFileFound ( $ filename , $ path = '' ) { if ( $ path === '' ) { \ PHPUnit \ Framework \ Assert :: assertFileNotExists ( $ filename ) ; return ; } $ found = $ this -> findFileInPath ( $ filename , $ path ) ; if ( $ found === false ) { //this line keeps a count of assertions correct \ PHPUnit \ Framework \ Assert :: assertTrue ( true ) ; return ; } \ PHPUnit \ Framework \ Assert :: assertFileNotExists ( $ found ) ; }
Checks if file does not exist in path

@param string $filename
@param string $path
Checks if file does not exist in path