has() public method

public has ( string $key ) : boolean
$key string
return boolean
コード例 #1
0
ファイル: ResolvingContextTest.php プロジェクト: nelmio/alice
 public function testMutator()
 {
     $context = new ResolvingContext();
     $this->assertFalse($context->has('foo'));
     $context->add('foo');
     $this->assertTrue($context->has('foo'));
 }