function testExactReference() { $map = new CallMap("wild"); $ref = "Fred"; $map->addReference("aMethod", array(0), &$ref); $this->assertEqual($map->findFirstMatch("aMethod", array(0)), "Fred"); $this->assertReference($map->findFirstMatch("aMethod", array(0)), $ref); }
function testExactReference() { $map = new CallMap(); $ref = "Fred"; $map->addReference(array(0), $ref); $this->assertEqual($map->findFirstMatch(array(0)), "Fred"); $ref2 =& $map->findFirstMatch(array(0)); $this->assertReference($ref2, $ref); }