mirror of
https://github.com/danog/file.git
synced 2024-11-26 20:04:51 +01:00
Do not skip scandir test (bug fixed in php-uv repo)
Fix Exception type
This commit is contained in:
parent
27d9dfd466
commit
8f1aaf344a
@ -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 {
|
||||
|
@ -15,13 +15,4 @@ class UvDriverTest extends DriverTest {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function testScandirThrowsIfPathNotADirectory() {
|
||||
$this->markTestSkipped("currently crashes php");
|
||||
}
|
||||
|
||||
public function testScandirThrowsIfPathDoesntExist() {
|
||||
$this->markTestSkipped("currently crashes php");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user