/** * The mode is converted to lower case making setServer case insensitve * * @depends testGetSetServerMode * @return null */ public function testSetServerModeUpperMixedCase() { $this->assertSame($this->request, $this->request->setServerMode('wRiTe'), 'exposes fluent interface'); $this->assertEquals('write', $this->request->getServerMode()); $this->assertSame($this->request, $this->request->setServerMode('READ'), 'exposes fluent interface'); $this->assertEquals('read', $this->request->getServerMode()); $this->assertSame($this->request, $this->request->setServerMode('IGNORe'), 'exposes fluent interface'); $this->assertEquals('ignore', $this->request->getServerMode()); }
/** * @expectedException Appfuel\Framework\Exception * @return null */ public function testSetServerModeInvalidInt() { $this->request->setServerMode(1234); }