2014-09-06 13:25:54 +00:00
|
|
|
<?php
|
|
|
|
namespace Vfs\Stream\StreamWrapper;
|
|
|
|
|
|
|
|
use Vfs\Test\AcceptanceTestCase;
|
|
|
|
|
|
|
|
class StatAcceptanceTest extends AcceptanceTestCase
|
|
|
|
{
|
|
|
|
protected $tree = [
|
|
|
|
'foo' => [
|
|
|
|
'bar' => 'baz'
|
|
|
|
]
|
|
|
|
];
|
|
|
|
|
|
|
|
public function testIsDir()
|
|
|
|
{
|
2014-09-06 23:44:12 +00:00
|
|
|
$this->assertTrue(is_dir("$this->scheme:///foo"));
|
2014-09-06 13:25:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function testIsFile()
|
|
|
|
{
|
2014-09-06 23:44:12 +00:00
|
|
|
$this->assertTrue(is_file("$this->scheme:///foo/bar"));
|
2014-09-06 13:25:54 +00:00
|
|
|
}
|
2014-09-06 16:34:05 +00:00
|
|
|
|
|
|
|
public function testTouch()
|
|
|
|
{
|
|
|
|
$this->assertTrue(touch("$this->scheme://foo/bar"));
|
|
|
|
}
|
2014-09-06 18:23:30 +00:00
|
|
|
|
|
|
|
public function testTouchNew()
|
|
|
|
{
|
|
|
|
$this->assertTrue(touch("$this->scheme://foo/baz"));
|
|
|
|
}
|
2014-09-06 13:25:54 +00:00
|
|
|
}
|