'Ok', 400 => 'Bad request', 404 => 'Not Found', 403 => 'Not Authorized', 500 => 'Server Error', ); public function testThatOutputBufferGetsInializedOnConstruction() { $text = 'This text should be captured by the renderers ob_start()'; ob_start(); echo 'Rubish text, that is not intended to be outputed'; ob_get_clean(); $renderer = new Renderer(); echo $text; $obcontent = ob_get_clean(); $this->assertSame($text, $obcontent); } }