first commit
This commit is contained in:
18
wp-content/plugins/wp-optimize/vendor/rosell-dk/file-util/tests/FileExistsUsingExecTest.php
vendored
Normal file
18
wp-content/plugins/wp-optimize/vendor/rosell-dk/file-util/tests/FileExistsUsingExecTest.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace FileUtil\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use FileUtil\FileExistsUsingExec;
|
||||
|
||||
class FileExistsUsingExecTest extends TestCase
|
||||
{
|
||||
public function testFileExists()
|
||||
{
|
||||
if (function_exists('exec')) {
|
||||
$this->assertTrue(FileExistsUsingExec::fileExists(__DIR__ . '/FileExistsTest.php'));
|
||||
$this->assertFalse(FileExistsUsingExec::fileExists(__DIR__ . '/not-here.php'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user