/** * Tests if exception is thown when unknown operation is recieved. * * @expectedException \InvalidArgumentException */ public function testBulkException() { $connection = new Connection($this->getClient(), []); $connection->bulk('unknownOperation', 'foo_type', []); }