php-vfs/test/acceptance/Stream/StreamWrapper/StatAcceptanceTest.php
2014-12-26 17:15:59 +00:00

34 lines
649 B
PHP

<?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"));
}
public function testTouch()
{
$this->assertTrue(touch("$this->scheme://foo/bar"));
}
public function testTouchNew()
{
$this->assertTrue(touch("$this->scheme://foo/baz"));
}
}