public function testAdd() { $violation = $this ->getViolation('Error'); $this->list ->add($violation); $this ->assertCount(1, $this->list); $this ->assertSame($violation, $this->list[0]); }