You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $commands['help'], '->all() returns the registered commands');
139
+
$this->assertInstanceOf(HelpCommand::class, $commands['help'], '->all() returns the registered commands');
138
140
139
141
$application->add(new \FooCommand());
140
142
$commands = $application->all('foo');
@@ -145,7 +147,7 @@ public function testAllWithCommandLoader()
145
147
{
146
148
$application = newApplication();
147
149
$commands = $application->all();
148
-
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $commands['help'], '->all() returns the registered commands');
150
+
$this->assertInstanceOf(HelpCommand::class, $commands['help'], '->all() returns the registered commands');
149
151
150
152
$application->add(new \FooCommand());
151
153
$commands = $application->all('foo');
@@ -229,7 +231,7 @@ public function testHasGet()
229
231
$p->setAccessible(true);
230
232
$p->setValue($application, true);
231
233
$command = $application->get('foo:bar');
232
-
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $command, '->get() returns the help command if --help is provided as the input');
234
+
$this->assertInstanceOf(HelpCommand::class, $command, '->get() returns the help command if --help is provided as the input');
233
235
}
234
236
235
237
publicfunctiontestHasGetWithCommandLoader()
@@ -351,7 +353,7 @@ public function testFind()
351
353
$application->add(new \FooCommand());
352
354
353
355
$this->assertInstanceOf(\FooCommand::class, $application->find('foo:bar'), '->find() returns a command if its name exists');
354
-
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $application->find('h'), '->find() returns a command if its name exists');
356
+
$this->assertInstanceOf(HelpCommand::class, $application->find('h'), '->find() returns a command if its name exists');
355
357
$this->assertInstanceOf(\FooCommand::class, $application->find('f:bar'), '->find() returns a command if the abbreviation for the namespace exists');
356
358
$this->assertInstanceOf(\FooCommand::class, $application->find('f:b'), '->find() returns a command if the abbreviation for the namespace and the command name exist');
357
359
$this->assertInstanceOf(\FooCommand::class, $application->find('a'), '->find() returns a command if the abbreviation exists for an alias');
@@ -398,7 +400,7 @@ public function testFindWithCommandLoader()
398
400
]));
399
401
400
402
$this->assertInstanceOf(\FooCommand::class, $application->find('foo:bar'), '->find() returns a command if its name exists');
401
-
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $application->find('h'), '->find() returns a command if its name exists');
403
+
$this->assertInstanceOf(HelpCommand::class, $application->find('h'), '->find() returns a command if its name exists');
402
404
$this->assertInstanceOf(\FooCommand::class, $application->find('f:bar'), '->find() returns a command if the abbreviation for the namespace exists');
403
405
$this->assertInstanceOf(\FooCommand::class, $application->find('f:b'), '->find() returns a command if the abbreviation for the namespace and the command name exist');
404
406
$this->assertInstanceOf(\FooCommand::class, $application->find('a'), '->find() returns a command if the abbreviation exists for an alias');
@@ -951,7 +953,7 @@ public function testRun()
951
953
ob_end_clean();
952
954
953
955
$this->assertInstanceOf(ArgvInput::class, $command->input, '->run() creates an ArgvInput by default if none is given');
954
-
$this->assertInstanceOf(\Symfony\Component\Console\Output\ConsoleOutput::class, $command->output, '->run() creates a ConsoleOutput by default if none is given');
956
+
$this->assertInstanceOf(ConsoleOutput::class, $command->output, '->run() creates a ConsoleOutput by default if none is given');
$this->fail('->get() throws InvalidArgumentException when helper not found');
69
70
} catch (\Exception$e) {
70
71
$this->assertInstanceOf(\InvalidArgumentException::class, $e, '->get() throws InvalidArgumentException when helper not found');
71
-
$this->assertInstanceOf(\Symfony\Component\Console\Exception\ExceptionInterface::class, $e, '->get() throws domain specific exception when helper not found');
72
+
$this->assertInstanceOf(ExceptionInterface::class, $e, '->get() throws domain specific exception when helper not found');
72
73
$this->assertStringContainsString('The helper "foo" is not defined.', $e->getMessage(), '->get() throws InvalidArgumentException when helper not found');
73
74
}
74
75
}
@@ -112,7 +113,7 @@ public function testIteration()
0 commit comments