function testBeginTimeInsideIntervalAllowsReportCreation() { $expected_begintime = 1308829978; // 2011-06-23 12:36:18 +0200 $expected_record = array('uid' => $this->expected_uid, 'jobid' => $this->expected_jobid, 'start_time' => 1308825379, 'end_time' => 1308829978); $mapping = new TZUserJobMapping($expected_record); $may_create_report = $mapping->mayCreateReport($this->expected_uid, $this->expected_jobid, $expected_begintime); $this->assertTrue($may_create_report); }