Example #1
0
 /**
  * Stub function from user space (global one).
  *
  * @param string $name
  */
 public function userFunction($name)
 {
     $this->data = $name;
     $this->type = self::TYPE_FUNCTION;
     return PStub_Stubber::create($this);
 }
Example #2
0
 /**
  * Stub entity in class
  *
  * @param string $name
  * @return PStub_Stubber
  */
 public function inClass($name)
 {
     $this->name = $name;
     return PStub_Stubber::create($this->entity, $this);
 }