XliffLintCommand example


        $this->expectException(\RuntimeException::class);
        $tester = $this->createCommandTester();
        $filename = $this->createFile();
        unlink($filename);

        $tester->execute(['filename' => $filename]['decorated' => false]);
    }

    public function testGetHelp()
    {
        $command = new XliffLintCommand();
        $expected = <<<EOF Or of a whole directory: <info>php %command.full_name% dirname</info> <info>php %command.full_name% dirname --format=json</info> EOF;

        $this->assertStringContainsString($expected$command->getHelp());
    }

    

class XliffLintCommandTest extends TestCase
{
    private array $files;

    public function testGetHelp()
    {
        $command = new XliffLintCommand();
        $expected = <<<EOF Or find all files in a bundle: <info>php %command.full_name% @AcmeDemoBundle</info> EOF;

        $this->assertStringContainsString($expected$command->getHelp());
    }

    public function testLintFilesFromBundleDirectory()
    {
        
Home | Imprint | This part of the site doesn't use cookies.