Exemple #1
0
 public function test()
 {
     $trait = new TraitImpl();
     $trait->setId(123);
     $this->assertEquals(123, $trait->getId());
 }
 public function testSetDateCreatedNow()
 {
     $trait = new TraitImpl();
     $trait->setDateCreatedNow();
     $this->assertInstanceOf(\DateTime::class, $trait->getDateCreated());
 }