public function testSameDependencyIsNotAddedTwice() { $a = new Job('a'); $b = new Job('b'); $this->assertCount(0, $a->getDependencies()); $a->addDependency($b); $this->assertCount(1, $a->getDependencies()); $a->addDependency($b); $this->assertCount(1, $a->getDependencies()); }