mirror of
https://github.com/adlawson/php-vfs.git
synced 2024-11-21 20:15:13 +00:00
Add is_dir
and is_file
acceptance tests
This commit is contained in:
parent
6f72a308fd
commit
c3ac67db8a
23
test/acceptance/Stream/StreamWrapper/StatAcceptanceTest.php
Normal file
23
test/acceptance/Stream/StreamWrapper/StatAcceptanceTest.php
Normal file
@ -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
Block a user