mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 11:14:38 +01:00
19 lines
461 B
PHP
19 lines
461 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Rector\Tests\Naming;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Rector\Naming\CommandNaming;
|
|
|
|
final class CommandNamingTest extends TestCase
|
|
{
|
|
public function test(): void
|
|
{
|
|
$name = CommandNaming::classToName('SomeNameCommand');
|
|
$this->assertSame('some-name', $name);
|
|
|
|
$name = CommandNaming::classToName('AlsoNamespace\SomeNameCommand');
|
|
$this->assertSame('some-name', $name);
|
|
}
|
|
}
|