We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489a8ac commit c6c1a62Copy full SHA for c6c1a62
tests/Filesystem/WorkspaceTest.php
@@ -11,7 +11,7 @@ class WorkspaceTest extends TestCase
11
{
12
public function testSetSuccessfully()
13
14
- $directory = vfsStream::setup()->url() . '/docs/arch';
+ $directory = vfsStream::setup()->url();
15
16
$workspace = new Workspace($directory);
17
@@ -21,9 +21,12 @@ public function testSetSuccessfully()
21
22
public function testSetFailure()
23
24
- $this->expectException(RuntimeException::class);
+ $directory = vfsStream::setup('docs', 00)->url();
25
26
- new Workspace('/path/to/docs/arch');
+ $this->expectException(RuntimeException::class);
27
+ $this->expectExceptionMessage("The parent directory isn't writable: $directory");
28
+
29
+ new Workspace($directory . '/arch');
30
}
31
32
public function testCount()
0 commit comments