Beispiel #1
0
 /**
  * @group disconnected
  */
 public function testFilterVariadicValues()
 {
     $arguments = array('key', 'value1', 'value2', 'value3');
     $this->assertSame($arguments, Helpers::filterVariadicValues($arguments));
     $this->assertSame($arguments, Helpers::filterVariadicValues(array('key', array('value1', 'value2', 'value3'))));
     $arguments = array(array(), array());
     $this->assertSame($arguments, Helpers::filterArrayArguments($arguments));
     $arguments = array(new \stdClass());
     $this->assertSame($arguments, Helpers::filterArrayArguments($arguments));
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 protected function filterArguments(array $arguments)
 {
     return Helpers::filterVariadicValues($arguments);
 }