Ejemplo n.º 1
0
 public function testTimestampAssesor()
 {
     $time = time();
     $expectedStart = $time - 1440;
     $expectedEnd = $time;
     $statement = new Statement();
     $statement->setStartTimestamp($expectedStart);
     $statement->setEndTimestamp($expectedEnd);
     $this->assertEquals($expectedStart, $statement->getStartTimestamp());
     $this->assertEquals($expectedEnd, $statement->getEndTimestamp());
 }