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');
140
+
$this->assertInstanceOf(HelpCommand::class, $commands['help'], '->all() returns the registered commands');
139
141
140
142
$application->add(new \FooCommand());
141
143
$commands = $application->all('foo');
@@ -146,7 +148,7 @@ public function testAllWithCommandLoader()
146
148
{
147
149
$application = newApplication();
148
150
$commands = $application->all();
149
-
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $commands['help'], '->all() returns the registered commands');
151
+
$this->assertInstanceOf(HelpCommand::class, $commands['help'], '->all() returns the registered commands');
150
152
151
153
$application->add(new \FooCommand());
152
154
$commands = $application->all('foo');
@@ -230,7 +232,7 @@ public function testHasGet()
230
232
$p->setAccessible(true);
231
233
$p->setValue($application, true);
232
234
$command = $application->get('foo:bar');
233
-
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $command, '->get() returns the help command if --help is provided as the input');
235
+
$this->assertInstanceOf(HelpCommand::class, $command, '->get() returns the help command if --help is provided as the input');
234
236
}
235
237
236
238
publicfunctiontestHasGetWithCommandLoader()
@@ -352,7 +354,7 @@ public function testFind()
352
354
$application->add(new \FooCommand());
353
355
354
356
$this->assertInstanceOf(\FooCommand::class, $application->find('foo:bar'), '->find() returns a command if its name exists');
355
-
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $application->find('h'), '->find() returns a command if its name exists');
357
+
$this->assertInstanceOf(HelpCommand::class, $application->find('h'), '->find() returns a command if its name exists');
356
358
$this->assertInstanceOf(\FooCommand::class, $application->find('f:bar'), '->find() returns a command if the abbreviation for the namespace exists');
357
359
$this->assertInstanceOf(\FooCommand::class, $application->find('f:b'), '->find() returns a command if the abbreviation for the namespace and the command name exist');
358
360
$this->assertInstanceOf(\FooCommand::class, $application->find('a'), '->find() returns a command if the abbreviation exists for an alias');
@@ -399,7 +401,7 @@ public function testFindWithCommandLoader()
399
401
]));
400
402
401
403
$this->assertInstanceOf(\FooCommand::class, $application->find('foo:bar'), '->find() returns a command if its name exists');
402
-
$this->assertInstanceOf(\Symfony\Component\Console\Command\HelpCommand::class, $application->find('h'), '->find() returns a command if its name exists');
404
+
$this->assertInstanceOf(HelpCommand::class, $application->find('h'), '->find() returns a command if its name exists');
403
405
$this->assertInstanceOf(\FooCommand::class, $application->find('f:bar'), '->find() returns a command if the abbreviation for the namespace exists');
404
406
$this->assertInstanceOf(\FooCommand::class, $application->find('f:b'), '->find() returns a command if the abbreviation for the namespace and the command name exist');
405
407
$this->assertInstanceOf(\FooCommand::class, $application->find('a'), '->find() returns a command if the abbreviation exists for an alias');
@@ -938,7 +940,7 @@ public function testRun()
938
940
ob_end_clean();
939
941
940
942
$this->assertInstanceOf(ArgvInput::class, $command->input, '->run() creates an ArgvInput by default if none is given');
941
-
$this->assertInstanceOf(\Symfony\Component\Console\Output\ConsoleOutput::class, $command->output, '->run() creates a ConsoleOutput by default if none is given');
943
+
$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