Ejemplo n.º 1
0
 public function testGetErrorArray()
 {
     $errors = $this->_e->getErrorArray();
     $this->assertArrayHasKey('errors', $errors);
     $this->assertEquals(3, count($errors['errors'][0]));
     $this->assertEquals("You shouldna been doin' that", $errors['errors'][0]['message']);
     $this->assertEquals('Frapi_Exception_Whatever', $errors['errors'][0]['name']);
     $this->assertEquals('In yo face!', $errors['errors'][0]['at']);
 }