Example #1
0
 /**
  * @testdox Allows to set the role name of a user
  * @covers Auth\Entity\AuthSession::setModificationDate
  * @covers Auth\Entity\AuthSession::getModificationDate
  * @dataProvider provideModificationDateTestData
  */
 public function testSetGetModificationDate($date, $expectedDate)
 {
     $this->target->setModificationDate($date);
     if (null == $date) {
         $this->assertInstanceOf("\\DateTime", $this->target->getModificationDate());
     } else {
         $this->assertEquals($expectedDate, $this->target->getModificationDate());
     }
 }