Skip to content

Commit

Permalink
Forgot to run tests before a push, again. Woops.
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
  • Loading branch information
jasonlewis committed Dec 6, 2014
1 parent b5ab833 commit cc5fddd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Http/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function created($location = null)
$response->setStatusCode(201);

if (! is_null($location)) {
$response->addHeader('Location', $location);
$response->header('Location', $location);
}

return $response;
Expand Down
2 changes: 0 additions & 2 deletions tests/Http/ResponseBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ public function testBuildingWithCustomStatusCodeAndHeaders()
$builder = new ResponseBuilder('test');
$builder->statusCode(302);
$builder->header('Foo', 'Bar');
$builder->headers(['Yin' => 'Yang']);

$response = $builder->build();

$this->assertEquals('Bar', $response->headers->get('Foo'));
$this->assertEquals('Yang', $response->headers->get('Yin'));
$this->assertEquals(302, $response->getStatusCode());
}
}

0 comments on commit cc5fddd

Please sign in to comment.