function testGetStatus() { $response = new TestResponse('', $this->some_headers); $this->assertEquals(404, $response->getStatusCode()); $response = new TestResponse('', array_slice($this->some_headers, 0, -2)); // slice off the last two headers to leave no status header $this->assertNull($response->getStatusCode()); }