public function CommandTest::testSetCodeWithNonCallable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Command/CommandTest.php \Symfony\Component\Console\Tests\Command\CommandTest::testSetCodeWithNonCallable()
@expectedException \InvalidArgumentException @expectedExceptionMessage Invalid callable provided to Command::setCode.
File
- vendor/
symfony/ console/ Tests/ Command/ CommandTest.php, line 303
Class
Namespace
Symfony\Component\Console\Tests\CommandCode
public function testSetCodeWithNonCallable() {
$command = new \TestCommand();
$command
->setCode(array(
$this,
'nonExistentMethod',
));
}