/** * @group disconnected * @expectedException InvalidArgumentException */ public function testThrowsExceptionOnInvalidArguments() { $option = new ConnectionFactoryOption(); $options = $this->getMock('Predis\\Configuration\\OptionsInterface'); $option->filter($options, new \stdClass()); }