private function setPattern($object, $methodName) { $cacheKey = get_class($object) . '::' . $methodName; if (!array_key_exists($cacheKey, $this->patterns)) { $this->patterns[$cacheKey] = $this->parserMethodCall->parse($object, $methodName); } $this->flow[$cacheKey] = [$object, $methodName]; }
public function testNull2() { $matching = new ParserMethodCall(new Mapper()); $arguments = $matching->parse(new Fixtures\ParserMethodCallTest(), 'method5'); $this->assertEquals(null, $arguments); }