/** * @covers WindowsAzure\Table\TableRestProxy::insertEntity * @covers WindowsAzure\Table\TableRestProxy::queryEntities */ public function testInsertEntityGuidNegative() { foreach (TableServiceFunctionalTestData::getInterestingBadGuids() as $o) { $ent = new Entity(); $ent->setPartitionKey(TableServiceFunctionalTestData::getNewKey()); $ent->setRowKey(TableServiceFunctionalTestData::getNewKey()); try { $ent->addProperty('GUID', EdmType::GUID, $o); $this->fail('Should get an exception when trying to parse this value'); $this->insertEntityWorker($ent, false, null, $o); } catch (\Exception $e) { $this->assertEquals(0, $e->getCode(), 'getCode'); $this->assertTrue(true, 'got expected exception'); } } }