/** * Test set Azure values */ public function testSetAzureValues() { $values = array('PartitionKey' => 'partition1', 'RowKey' => '000001', 'Name' => 'Maarten', 'Age' => 25, 'Visible' => true); $target = new DynamicTableEntity(); $target->setAzureValues($values); $target->setAzurePropertyType('Age', 'Edm.Int32'); $this->assertEquals('partition1', $target->getPartitionKey()); $this->assertEquals('000001', $target->getRowKey()); $this->assertEquals('Maarten', $target->Name); $this->assertEquals(25, $target->Age); $this->assertEquals('Edm.Int32', $target->getAzurePropertyType('Age')); $this->assertEquals(true, $target->Visible); }