Skip to content

Commit

Permalink
Remove unused reflected property in ErrorHandlerTest
Browse files Browse the repository at this point in the history
It's not used and causes a warning.
  • Loading branch information
akrabat committed Nov 23, 2023
1 parent 28e6319 commit fb55626
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/Handlers/ErrorHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,6 @@ public function testAcceptableMediaTypeIsNotFirstInList()
$method = $class->getMethod('determineContentType');
$method->setAccessible(true);

$reflectionProperty = $class->getProperty('responseFactory');
$reflectionProperty->setAccessible(true);
$reflectionProperty->setValue($class, $this->getResponseFactory());

// use a mock object here as ErrorHandler cannot be directly instantiated
$handler = $this
->getMockBuilder(ErrorHandler::class)
Expand Down

0 comments on commit fb55626

Please sign in to comment.