Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Apr 14, 2021
1 parent 04116f5 commit 26c4ca5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/Whoops/Util/SystemFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,12 @@ public function test_it_delegates_getting_the_last_error_to_the_native_implement
}

public function test_it_delegates_sending_an_http_response_code_to_the_native_implementation()
{
self::$runtime->shouldReceive('http_response_code')->once()->with(230);

$this->facade->setHttpResponseCode(230);
}

public function test_it_removes_any_location_header_already_sent()
{
self::$runtime->shouldReceive('headers_sent')->once()->withNoArgs();
self::$runtime->shouldReceive('header_remove')->once()->with('location');
self::$runtime->shouldReceive('http_response_code')->once()->with(230);

$this->facade->setHttpResponseCode(204);
$this->facade->setHttpResponseCode(230);
}
}

Expand Down

0 comments on commit 26c4ca5

Please sign in to comment.