|
|
@@ -59,7 +59,7 @@ class CommandCollectionTest extends TestCase
|
|
|
public function testConstructorInvalidClass()
|
|
|
{
|
|
|
$this->expectException(\InvalidArgumentException::class);
|
|
|
- $this->expectExceptionMessage('Cannot use \'stdClass\' for command \'nope\' it is not a subclass of Cake\Console\Shell');
|
|
|
+ $this->expectExceptionMessage('Cannot use \'stdClass\' for command \'nope\'. It is not a subclass of Cake\Console\Shell');
|
|
|
new CommandCollection([
|
|
|
'i18n' => I18nShell::class,
|
|
|
'nope' => stdClass::class,
|
|
|
@@ -131,7 +131,7 @@ class CommandCollectionTest extends TestCase
|
|
|
public function testAddInvalidInstance()
|
|
|
{
|
|
|
$this->expectException(\InvalidArgumentException::class);
|
|
|
- $this->expectExceptionMessage('Cannot use \'stdClass\' for command \'routes\' it is not a subclass of Cake\Console\Shell');
|
|
|
+ $this->expectExceptionMessage('Cannot use \'stdClass\' for command \'routes\'. It is not a subclass of Cake\Console\Shell');
|
|
|
$collection = new CommandCollection();
|
|
|
$shell = new stdClass();
|
|
|
$collection->add('routes', $shell);
|
|
|
@@ -177,7 +177,7 @@ class CommandCollectionTest extends TestCase
|
|
|
public function testInvalidShellClassName()
|
|
|
{
|
|
|
$this->expectException(\InvalidArgumentException::class);
|
|
|
- $this->expectExceptionMessage('Cannot use \'stdClass\' for command \'routes\' it is not a subclass of Cake\Console\Shell');
|
|
|
+ $this->expectExceptionMessage('Cannot use \'stdClass\' for command \'routes\'. It is not a subclass of Cake\Console\Shell');
|
|
|
$collection = new CommandCollection();
|
|
|
$collection->add('routes', stdClass::class);
|
|
|
}
|