public function testGetParam() { $this->_mockContainer->shouldReceive('getParameter')->once()->with('foo')->andReturn('bar'); $result = $this->_sut->getParameter('foo'); $this->assertEquals('bar', $result); }