public function addDependency($fromHash, $toHash) { $definition = $this->nodeList[$fromHash]; $definition->dependencyList[] = $toHash; }
public function testFailureSortMissingDependency() { $node1 = new Mock\Node(1); $this->sorter->addNode('1', $node1); $this->sorter->addDependency('1', '2'); $this->expectException(\RuntimeException::class); $this->sorter->sort(); }