Beispiel #1
0
 /**
  * @depends	testGetSetStrategy
  * @return	null
  */
 public function testEnableReadOnly()
 {
     /* set to something not that is not read */
     $this->request->setStrategy('read-write');
     $this->assertEquals('read-write', $this->request->getStrategy());
     $this->assertSame($this->request, $this->request->enableReadOnly());
     $this->assertEquals('read', $this->request->getStrategy());
     /* nothing happens when alread read */
     $this->assertSame($this->request, $this->request->enableReadOnly());
     $this->assertEquals('read', $this->request->getStrategy());
 }