Пример #1
0
 public function testConversion()
 {
     $tag = new Tag('timestamped');
     $this->assertInstanceOf('Webforge\\Common\\DateTime\\DateTime', $time = $tag->getCreated());
     $this->em->persist($tag);
     $this->em->flush();
     $this->em->clear();
     $this->assertInstanceOf('Webforge\\Common\\DateTime\\DateTime', $savedTime = $tag->getCreated());
     $this->assertEquals($time, $savedTime);
 }