public function testRenderJavascripts() { $map = $this->getMock('Ivory\\GoogleMap\\Map'); $this->mapHelperMock->expects($this->once())->method('renderJavascripts')->with($map)->will($this->returnValue('foo')); $this->assertSame('foo', $this->templateHelper->renderJavascripts($map)); }