php-vfs/test/acceptance/Stream/StreamWrapper/StatAcceptanceTest.php

34 lines
649 B
PHP
Raw Normal View History

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