/** * @depends testInterface * @return null */ public function testSetStatus() { $this->assertEquals(200, $this->template->getStatusCode()); $this->assertEquals('OK', $this->template->getStatusText()); $this->assertSame($this->template, $this->template->setStatus(500, 'Error'), 'uses a fluent interface'); $this->assertEquals(500, $this->template->getStatusCode()); $this->assertEquals('Error', $this->template->getStatusText()); $this->assertSame($this->template, $this->template->setStatus(0, ''), 'uses a fluent interface'); $this->assertEquals(0, $this->template->getStatusCode()); $this->assertEquals('', $this->template->getStatusText()); }