public function returns_valueSetInExpectation() { $expectation = new Expectation('foo'); $sut = new MethodOptions($expectation, 'foo'); $expected = new Object(); $sut->returns($expected); $this->assertEquals($expected, $expectation->getReturn()); }