You are here

public function HelperSetTest::testGetCommand in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Helper/HelperSetTest.php \Symfony\Component\Console\Tests\Helper\HelperSetTest::testGetCommand()

@covers \Symfony\Component\Console\Helper\HelperSet::getCommand

File

vendor/symfony/console/Tests/Helper/HelperSetTest.php, line 106

Class

HelperSetTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testGetCommand() {
  $cmd = new Command('foo');
  $helperset = new HelperSet();
  $helperset
    ->setCommand($cmd);
  $this
    ->assertEquals($cmd, $helperset
    ->getCommand(), '->getCommand() retrieves stored command');
}