public function render() { return $this->grid->render(); }
/** * @test * @dataProvider gridsAndTheirRenderingDataProvider * * @param string $expectedRender * @param Grid $grid */ public function givenAnEmptyGridWhenPlacingAllShipsThenRenderMustMathString($expectedRender, $grid) { $this->assertSame($expectedRender, $grid->render()); }