Skip to content

Commit 8040d68

Browse files
committed
mini test
1 parent 3f4a657 commit 8040d68

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/ValueObject/ProjectTest.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)