/** * @covers WindowsAzure\ServiceBus\Models\BrokeredMessage::getProperties * @covers WindowsAzure\ServiceBus\Models\BrokeredMessage::setProperty */ public function testGetSetCustomProperties() { // Setup $expected = 'testCustomPropertyValue'; $testCustomPropertyKey = 'testCustomPropertyKey'; $brokeredMessage = new BrokeredMessage(); // Test $brokeredMessage->setProperty($testCustomPropertyKey, $expected); $customProperties = $brokeredMessage->getProperties(); $actual = $customProperties[strtolower($testCustomPropertyKey)]; // Assert $this->assertEquals($expected, $actual); }