mirror of
https://github.com/adlawson/php-vfs.git
synced 2024-11-22 20:45:12 +00:00
34 lines
649 B
PHP
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"));
|
|
}
|
|
}
|