コード例 #1
0
ファイル: Feed.php プロジェクト: yszar/linuxwp
 /**
  * Sets the updated. 
  * 
  * @param \DateTime $updated updated
  * 
  * @return none
  */
 public function setUpdated($updated)
 {
     Validate::isInstanceOf($updated, new \DateTime(), 'updated');
     $this->updated = $updated;
 }
コード例 #2
0
 /**
  * @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);
 }