/** * @covers Guzzle\Service\Description\ApiCommand::validate * @expectedException Guzzle\Service\Exception\ValidationException * @expectedExceptionMessage Validation errors: Requires that the data argument be supplied. */ public function testValidatesRequiredFieldsAreSet() { $command = new ApiCommand(array('params' => array('data' => new ApiParam(array('required' => true))))); $command->validate(new Collection()); }