Refactor names in CommandResolverInterface
This commit is contained in:
		@@ -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());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user