public function testAddErrors() { for ($i = 0; $i < 3; $i++) { $error = new CompilerResponseError('foo', array()); $this->response->addError($error); } $this->assertCount(3, $this->response->getErrors()); }