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
Copy file name to clipboardExpand all lines: Tests/ApplicationTest.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -97,11 +97,11 @@ public function testAll()
97
97
{
98
98
$application = newApplication();
99
99
$commands = $application->all();
100
-
$this->assertEquals('Symfony\\Component\\Console\\Command\\HelpCommand', get_class($commands['help']), '->all() returns the registered commands');
100
+
$this->assertInstanceOf('Symfony\\Component\\Console\\Command\\HelpCommand', $commands['help'], '->all() returns the registered commands');
101
101
102
102
$application->add(new \FooCommand());
103
103
$commands = $application->all('foo');
104
-
$this->assertEquals(1, count($commands), '->all() takes a namespace as its first argument');
104
+
$this->assertCount(1, $commands, '->all() takes a namespace as its first argument');
105
105
}
106
106
107
107
publicfunctiontestRegister()
@@ -481,8 +481,8 @@ public function testRun()
481
481
$application->run();
482
482
ob_end_clean();
483
483
484
-
$this->assertSame('Symfony\Component\Console\Input\ArgvInput', get_class($command->input), '->run() creates an ArgvInput by default if none is given');
485
-
$this->assertSame('Symfony\Component\Console\Output\ConsoleOutput', get_class($command->output), '->run() creates a ConsoleOutput by default if none is given');
484
+
$this->assertInstanceOf('Symfony\Component\Console\Input\ArgvInput', $command->input, '->run() creates an ArgvInput by default if none is given');
485
+
$this->assertInstanceOf('Symfony\Component\Console\Output\ConsoleOutput', $command->output, '->run() creates a ConsoleOutput by default if none is given');
0 commit comments