public function addProblem(ProblemInterface $problem) { $this->problems[$problem->getId()] = $problem; }
/** * @depends clone testRemoveSolution * @param ProblemInterface $problem * @return ProblemInterface * @expectedException InvalidArgumentException * @expectedExceptionCode 2 * @expectedExceptionMessage Solution with id: 2 not found */ public function testRemoveSolutionTwice(ProblemInterface $problem) { $problem->removeSolution(2); return $problem; }