Add is_dir and is_file acceptance tests

This commit is contained in:
adlawson 2014-09-06 14:25:54 +01:00
parent 6f72a308fd
commit c3ac67db8a

View 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"));
}
}