public function testHasDependency() { $a = new Job('a'); $b = new Job('b'); $this->assertFalse($a->hasDependency($b)); $a->addDependency($b); $this->assertTrue($a->hasDependency($b)); }