예제 #1
0
 /**
  * @return null
  */
 public function testGetSetResultOptions()
 {
     $this->assertEquals(array(), $this->request->getResultOptions());
     $options = array(1, 2, 3);
     $this->assertSame($this->request, $this->request->setResultOptions($options));
     $this->assertEquals($options, $this->request->getResultOptions());
     /* empty array is valid */
     $options = array();
     $this->assertSame($this->request, $this->request->setResultOptions($options));
     $this->assertEquals($options, $this->request->getResultOptions());
 }
 /**
  * @expectedException   Exception
  * @return null
  */
 public function testSetResultOptionsBadObject()
 {
     $this->request->setResultOptions(new StdClass());
 }