/** * @dataProvider shapesDataProvider * @param $shapeArray * @param $assertions */ public function testGetActiveShapes($shapeArray, $assertions) { $exercise = new MatchPictureInPictureExercise(); $this->assertNull($exercise->addShapesFromArray($shapeArray)); // test Active shapes $activeShapes = $exercise->getActiveShapes(); $this->assertCount($assertions['activeShapeCount'], $activeShapes); }