Skip to content

Commit

Permalink
Simplify assertion.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <[email protected]>
  • Loading branch information
crynobone committed Apr 13, 2015
1 parent 6bcbd0f commit 8531a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/PHPUnitAssertionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public function assertResponseOk()
*/
public function assertResponseStatus($code)
{
$actual = $response->getStatusCode();
$actual = $this->crawler->getStatusCode();

return PHPUnit::assertEquals($code, $this->crawler->getStatusCode(), "Expected status code {$code}, got {$actual}.");
return PHPUnit::assertEquals($code, $actual, "Expected status code {$code}, got {$actual}.");
}

/**
Expand Down

0 comments on commit 8531a1e

Please sign in to comment.