public function testAliasesHasAndAddWorks() { $term = new Terminal(); $this->assertFalse($term->hasAlias("foo")); $command = new ShellCommand("foo"); $term->addAlias("foo", $command); $this->assertTrue($term->hasAlias("foo")); }