mirror of https://github.com/adlawson/php-vfs.git
Add `is_dir` and `is_file` acceptance tests
This commit is contained in:
parent
6f72a308fd
commit
c3ac67db8a
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
namespace Vfs\Stream\StreamWrapper;
|
||||
|
||||
use Vfs\Test\AcceptanceTestCase;
|
||||
|
||||
class StatAcceptanceTest extends AcceptanceTestCase
|
||||
{
|
||||
protected $tree = [
|
||||
'foo' => [
|
||||
'bar' => 'baz'
|
||||
]
|
||||
];
|
||||
|
||||
public function testIsDir()
|
||||
{
|
||||
$this->assertTrue(is_dir("$this->scheme://foo"));
|
||||
}
|
||||
|
||||
public function testIsFile()
|
||||
{
|
||||
$this->assertTrue(is_file("$this->scheme://foo/bar"));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue