public function testInvalidSeverity() { $this->error->setSeverity("bunk"); $errorArray = $this->error->toArray(); $this->assertEquals($errorArray['severity'], 'warning'); }