Пример #1
0
 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];
 }
Пример #2
0
 public function testNull2()
 {
     $matching = new ParserMethodCall(new Mapper());
     $arguments = $matching->parse(new Fixtures\ParserMethodCallTest(), 'method5');
     $this->assertEquals(null, $arguments);
 }