You are here

public function HelperSetTest::testHas 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::testHas()

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

File

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

Class

HelperSetTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testHas() {
  $helperset = new HelperSet(array(
    'fake_helper_alias' => $this
      ->getGenericMockHelper('fake_helper'),
  ));
  $this
    ->assertTrue($helperset
    ->has('fake_helper'), '->has() finds set helper');
  $this
    ->assertTrue($helperset
    ->has('fake_helper_alias'), '->has() finds set helper by alias');
}