public function created_with_location() { $location = 'http://example.com/resource/4711'; $r = Response::created($location); $this->assertEquals(201, $r->status); $this->assertEquals(array('Location' => $location), $r->headers); }
public function createIt() { return Response::created('/resource/4711'); }