mirror of
https://github.com/adlawson/php-vfs.git
synced 2024-11-24 21:57:40 +00:00
24 lines
514 B
PHP
24 lines
514 B
PHP
<?php
|
|
namespace Vfs\Stream\StreamWrapper;
|
|
|
|
use Vfs\Test\AcceptanceTestCase;
|
|
|
|
class ReadDirAcceptanceTest extends AcceptanceTestCase
|
|
{
|
|
protected $tree = [
|
|
'foo' => [
|
|
'bar' => 'baz'
|
|
]
|
|
];
|
|
|
|
public function testReadDirectory()
|
|
{
|
|
$dHandler = opendir("$this->scheme:///foo");
|
|
$expects = ['bar' => true, '.' => true, '..' => true];
|
|
while(($file = readdir($dHandler)) !== false) {
|
|
$this->assertArrayHasKey($file, $expects);
|
|
}
|
|
}
|
|
}
|
|
|