1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00

Do not skip scandir test (bug fixed in php-uv repo)

Fix Exception type
This commit is contained in:
Bob Weinand 2015-08-08 16:53:40 +02:00
parent 27d9dfd466
commit 8f1aaf344a
2 changed files with 1 additions and 10 deletions

View File

@ -254,7 +254,7 @@ class UvDriver implements Driver {
uv_fs_readdir($this->loop, $path, 0, function($fh, $data) use ($promisor, $path) {
$this->reactor->delRef();
if (empty($fh)) {
$promisor->fail(new \RuntimeException(
$promisor->fail(new FilesystemException(
"Failed reading contents from {$path}"
));
} else {

View File

@ -15,13 +15,4 @@ class UvDriverTest extends DriverTest {
);
}
}
public function testScandirThrowsIfPathNotADirectory() {
$this->markTestSkipped("currently crashes php");
}
public function testScandirThrowsIfPathDoesntExist() {
$this->markTestSkipped("currently crashes php");
}
}