/** * @test */ public function thumbnailHeightMightExceedImageHeightIfAllowUpScalingIsTrue() { $this->mockTagBuilder->expects($this->once())->method('render'); $this->mockTagBuilder->expects($this->once())->method('addAttributes')->with(array('width' => null, 'height' => 456, 'src' => null)); $this->mockImage->expects($this->once())->method('getThumbnail')->with(100, 456, 'inset')->will($this->returnValue($this->mockThumbnail)); $this->viewHelper->render($this->mockImage, NULL, 456, FALSE, TRUE); }