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 3f4a657 commit 8040d68Copy full SHA for 8040d68
tests/ValueObject/ProjectTest.php
@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Rector\ArgTyper\Tests\ValueObject;
6
7
+use PHPUnit\Framework\TestCase;
8
+use Rector\ArgTyper\ValueObject\Project;
9
10
+final class ProjectTest extends TestCase
11
+{
12
+ public function testMessage(): void
13
+ {
14
+ $this->expectExceptionMessage('The path "non-existing-path" is not a directory');
15
16
+ new Project('non-existing-path');
17
+ }
18
19
+ public function testMissingAutoload(): void
20
21
+ $this->expectExceptionMessage('Could not find "vendor/autoload.php" in the project. Make sure its dependencies are installed');
22
23
+ new Project(__DIR__);
24
25
+}
0 commit comments