public function testGetTasksClonesTasks() { $task = new EchoTask(); $task->setMessage('Hello World'); $this->target->addTask($task); $tasks = $this->target->getTasks(); $this->assertNotSame($task, $tasks[0]); }