/** * Sets the updated. * * @param \DateTime $updated updated * * @return none */ public function setUpdated($updated) { Validate::isInstanceOf($updated, new \DateTime(), 'updated'); $this->updated = $updated; }
/** * @covers WindowsAzure\Common\Internal\Validate::isInstanceOf */ public function testIsInstanceOfNullValue() { // Setup $value = null; $arrayObject = array(); // Test $result = Validate::isInstanceOf($value, $arrayObject, 'value'); // Assert $this->assertTrue($result); }