Upstream spiral/testing state of the touched files before 6e6e351854
This commit is contained in:
1 parent
0171b86dd8
commit
e8fb94b682
2 files changed
+93
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Spiral\Testing\Tests;
|
||||
|
||||
use PHPUnit\Framework\ExpectationFailedException;
|
||||
|
||||
final class ConsoleTest extends TestCase
|
||||
{
|
||||
public function testRegisteredCommand(): void
|
||||
{
|
||||
$this->assertCommandRegistered('foo');
|
||||
}
|
||||
|
||||
public function testNotRegisteredCommandShouldThrowAnException(): void
|
||||
{
|
||||
$this->expectException(ExpectationFailedException::class);
|
||||
$this->expectExceptionMessage('Command [bar] is not registered.');
|
||||
|
||||
$this->assertCommandRegistered('bar');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user