isMatch() public method

Searches the call list for a matching parameter set. True if successful.
public isMatch ( array $parameters ) : boolean
$parameters array Parameters to search by without wildcards.
return boolean True if a match is present.
コード例 #1
0
 function testAllWildcard()
 {
     $fred = 'Fred';
     $map = new SimpleSignatureMap();
     $this->assertFalse($map->isMatch(array(2, 1, 3)));
     $map->add('', $fred);
     $this->assertTrue($map->isMatch(array(2, 1, 3)));
     $this->assertSame($map->findFirstAction(array(2, 1, 3)), $fred);
 }