header = new class() extends HeaderAbstract { public function generate(int $statusCode) : void { } public function getProtocolVersion() : string { return '1'; } public function set(string $key, string $value, bool $overwrite = false) : bool { return true; } public function get(string $key = null) : array { return []; } public function has(string $key) : bool { return true; } }; } /** * @testdox The the status code can be set and returned * @covers phpOMS\Message\HeaderAbstract * @group framework */ public function testStatusCodeInputOutput() : void { $this->header->status = 2; self::assertEquals(2, $this->header->status); } }