Esempio n. 1
0
 /**
  * @return string
  */
 public function toString()
 {
     $list = array();
     if ($this->invocationMatcher !== null) {
         $list[] = $this->invocationMatcher->toString();
     }
     if ($this->methodNameMatcher !== null) {
         $list[] = 'where ' . $this->methodNameMatcher->toString();
     }
     if ($this->parametersMatcher !== null) {
         $list[] = 'and ' . $this->parametersMatcher->toString();
     }
     if ($this->afterMatchBuilderId !== null) {
         $list[] = 'after ' . $this->afterMatchBuilderId;
     }
     if ($this->stub !== null) {
         $list[] = 'will ' . $this->stub->toString();
     }
     return implode(' ', $list);
 }