Exemplo n.º 1
0
 public function testSetUpdated()
 {
     $blog = new Blog();
     $dateTime = new \DateTime();
     $blog->setUpdated($dateTime);
     $this->assertEquals($dateTime, $blog->getUpdated());
     $blog->setUpdatedValue();
     $this->assertNotSame($dateTime, $blog->getUpdated());
     $this->assertInstanceOf('DateTime', $blog->getUpdated());
 }