|
|
@@ -61,7 +61,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([
|
|
|
'sample' => SampleShell::class,
|
|
|
'nope' => stdClass::class,
|
|
|
@@ -133,7 +133,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);
|
|
|
@@ -179,7 +179,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);
|
|
|
}
|