/** * @covers WindowsAzure\Common\Models\ServiceProperties::getLogging */ public function testGetLogging() { // Setup $sample = TestResources::getServicePropertiesSample(); $logging = Logging::create($sample['Logging']); $result = new ServiceProperties(); $result->setLogging($logging); // Test $actual = $result->getLogging($logging); // Assert $this->assertEquals($logging, $actual); }
public function testCheckServiceProperties() { // Check that the default values of options are reasonable $l = new Logging(); $m = new Metrics(); $sp = new ServiceProperties(); $this->assertNull($sp->getLogging(), 'Default ServiceProperties->getLogging should not be null'); $this->assertNull($sp->getMetrics(), 'Default ServiceProperties->getMetrics should not be null'); $sp->setLogging($l); $sp->setMetrics($m); $this->assertEquals($sp->getLogging(), $l, 'Set ServiceProperties->getLogging'); $this->assertEquals($sp->getMetrics(), $m, 'Set ServiceProperties->getMetrics'); }
public function testCheckServiceProperties() { $l = new Logging(); $m = new Metrics(); $sp = new ServiceProperties(); $this->assertNull($sp->getLogging(), 'Default ServiceProperties->getLogging should not be null'); $this->assertNull($sp->getMetrics(), 'Default ServiceProperties->getMetrics should not be null'); $sp->setLogging($l); $sp->setMetrics($m); $this->assertEquals($sp->getLogging(), $l, 'Set ServiceProperties->getLogging'); $this->assertEquals($sp->getMetrics(), $m, 'Set ServiceProperties->getMetrics'); }