mirror of
https://github.com/adlawson/php-vfs.git
synced 2025-01-25 06:38:28 +00:00
ecbce78baf
Better supports `scheme:///path` and `scheme:///`.
24 lines
434 B
PHP
24 lines
434 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"));
|
|
}
|
|
}
|