public function testIsEmpty() { $period = new Period(new \DateTime('2014-12-01'), new \DateTime('2014-12-31')); $worklogs = new ArrayCollection([]); $taskList = new TaskList($period, $worklogs, new \DateTimeZone('UTC')); $this->assertTrue($taskList->isEmpty()); }
/** * @param User $user * @param TaskList $taskList */ public function __construct(User $user, TaskList $taskList) { $this->user = $user; $this->taskList = $taskList; $this->period = $taskList->getPeriod(); }