public function testGetTaskByDescriptionThrowsExceptionWhenTaskNotFound() { $task = new Task("Task day."); $this->workingDay->addTask($task); $this->setExpectedException('JGimeno\\TaskReporter\\Domain\\Exception\\DomainException'); $this->workingDay->getTaskByDescription(new TaskDescription("No task.")); }