public function testHeadersForHttpException() { $flattened = FlattenException::create(new MethodNotAllowedHttpException(array( 'POST', ))); $this ->assertEquals(array( 'Allow' => 'POST', ), $flattened ->getHeaders()); }