Ejemplo n.º 1
0
 public function addProblem(ProblemInterface $problem)
 {
     $this->problems[$problem->getId()] = $problem;
 }
Ejemplo n.º 2
0
 /**
  * @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;
 }