public function exceptionUsingAssocArray() { $this->setExpectedException('InvalidArgumentException', 'Don\'t use an associative array.'); $this->getCurlObject([], ['test1' => 1]); }