Refactor names in CommandResolverInterface

This commit is contained in:
2024-12-28 15:35:41 +01:00
parent 07f8ae467c
commit 9ab9561270
5 changed files with 68 additions and 10 deletions

View File

@ -48,8 +48,8 @@ class CommandRegistryTest extends \PHPUnit\Framework\TestCase
$reg->register('a', $cmda);
$reg->register('b', $cmdb);
$this->assertEquals('a', $reg->find('a')?->getName());
$this->assertEquals('b', $reg->find('b')?->getName());
$this->assertEquals('a', $reg->findCommand('a')?->getName());
$this->assertEquals('b', $reg->findCommand('b')?->getName());
}
public function testGettingCommandNames()
@ -61,7 +61,7 @@ class CommandRegistryTest extends \PHPUnit\Framework\TestCase
$reg->register('a', $cmda);
$reg->register('b', $cmdb);
$this->assertEquals(['a','b'], $reg->getNames());
$this->assertEquals(['a','b'], $reg->getCommandNames());
}
}
}