Upstream spiral/testing state of the touched files before 6e6e351854

This commit is contained in:
upstream committed 2026-10-02 16:20:09 +02:00
1 parent 0171b86dd8
commit e8fb94b682
2 files changed
+93

No files matched your search

+23
View File
@@ -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');
}
}