コード例 #1
0
ファイル: Spec.php プロジェクト: docteurklein/funk-spec
 public function bindCallee(Callee $callee)
 {
     $callable = $callee->getCallable();
     if ($callee->isAnInstanceMethod()) {
         return [$this->spec, $callable->getName()];
     }
     return $callable;
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function bindCallee(Callee $callee)
 {
     $callable = $callee->getCallable();
     if ($callee->isAnInstanceMethod()) {
         return array($this->getContext($callable[0]), $callable[1]);
     }
     return $callable;
 }