/** * Test getPencil returns the pencil. * * @dataProvider gamePencilProvider */ public function testGetPencil(PencilInterface $pencil) { $game = new Game(); $game->setPencil($pencil); $result = $game->getPencil(); $this->assertSame($pencil, $result); }