| 1 |
<?php |
| 2 |
|
| 3 |
namespace FileUtil\Tests; |
| 4 |
|
| 5 |
use PHPUnit\Framework\TestCase; |
| 6 |
use FileUtil\FileExistsUsingExec; |
| 7 |
|
| 8 |
class FileExistsUsingExecTest extends TestCase |
| 9 |
{ |
| 10 |
public function testFileExists() |
| 11 |
{ |
| 12 |
if (function_exists('exec')) { |
| 13 |
$this->assertTrue(FileExistsUsingExec::fileExists(__DIR__ . '/FileExistsTest.php')); |
| 14 |
$this->assertFalse(FileExistsUsingExec::fileExists(__DIR__ . '/not-here.php')); |
| 15 |
} |
| 16 |
} |
| 17 |
|
| 18 |
} |
| 19 |
|