Skip to content

Commit c6c1a62

Browse files
committed
Fix the testSetSuccessfully and testSetFailure tests
1 parent 489a8ac commit c6c1a62

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/Filesystem/WorkspaceTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class WorkspaceTest extends TestCase
1111
{
1212
public function testSetSuccessfully()
1313
{
14-
$directory = vfsStream::setup()->url() . '/docs/arch';
14+
$directory = vfsStream::setup()->url();
1515

1616
$workspace = new Workspace($directory);
1717

@@ -21,9 +21,12 @@ public function testSetSuccessfully()
2121

2222
public function testSetFailure()
2323
{
24-
$this->expectException(RuntimeException::class);
24+
$directory = vfsStream::setup('docs', 00)->url();
2525

26-
new Workspace('/path/to/docs/arch');
26+
$this->expectException(RuntimeException::class);
27+
$this->expectExceptionMessage("The parent directory isn't writable: $directory");
28+
29+
new Workspace($directory . '/arch');
2730
}
2831

2932
public function testCount()

0 commit comments

Comments
 (0)