Beispiel #1
0
 /**
  * @return null
  */
 public function testGetSetIsValues()
 {
     $this->assertFalse($this->request->isValues());
     $this->assertEquals(array(), $this->request->getValues());
     $values = array(1, 2, 3, 4);
     $this->assertSame($this->request, $this->request->setValues($values));
     $this->assertEquals($values, $this->request->getValues());
     $this->assertTrue($this->request->isValues());
     /* empty array will work */
     $values = array();
     $this->assertSame($this->request, $this->request->setValues($values));
     $this->assertEquals($values, $this->request->getValues());
     $this->assertFalse($this->request->isValues());
 }
Beispiel #2
0
 /**
  * @depends				testInterface
  * @expectedException	Exception
  * @dataProvider		provideInvalidArray
  * @return null
  */
 public function testSetValuesNotArray_Failure($values)
 {
     $this->request->setValues($values);
 }