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