Lines Matching refs:stub
76 * @param PHPUnit_Framework_MockObject_Stub $stub
80 public function will(PHPUnit_Framework_MockObject_Stub $stub) argument
82 $this->matcher->stub = $stub;
95 $stub = count($nextValues) === 0 ?
101 return $this->will($stub);
111 $stub = new PHPUnit_Framework_MockObject_Stub_ReturnReference($reference);
113 return $this->will($stub);
123 $stub = new PHPUnit_Framework_MockObject_Stub_ReturnValueMap(
127 return $this->will($stub);
137 $stub = new PHPUnit_Framework_MockObject_Stub_ReturnArgument(
141 return $this->will($stub);
151 $stub = new PHPUnit_Framework_MockObject_Stub_ReturnCallback(
155 return $this->will($stub);
163 $stub = new PHPUnit_Framework_MockObject_Stub_ReturnSelf;
165 return $this->will($stub);
175 $stub = new PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls($values);
177 return $this->will($stub);
187 $stub = new PHPUnit_Framework_MockObject_Stub_Exception($exception);
189 return $this->will($stub);