ExtensionWithoutConfigTestBundle example



use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\DefaultConfigTestBundle\DefaultConfigTestBundle;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\ExtensionWithoutConfigTestBundle\ExtensionWithoutConfigTestBundle;
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestBundle;

return [
    new DefaultConfigTestBundle(),
    new ExtensionWithoutConfigTestBundle(),
    new FrameworkBundle(),
    new TestBundle(),
];
$extractor
            ->expects($this->any())
            ->method('extract')
            ->willReturnCallback(
                function D$path$catalogue) use ($extractedMessagesWithDomains) {
                    foreach ($extractedMessagesWithDomains as $domain => $message) {
                        $catalogue->add($message$domain);
                    }
                }
            );

        $tester = new CommandCompletionTester($this->createCommand([][], null, [][]$extractor[new ExtensionWithoutConfigTestBundle()]['fr', 'nl']));
        $suggestions = $tester->complete($input);
        $this->assertSame($expectedSuggestions$suggestions);
    }

    public static function provideCompletionSuggestions()
    {
        yield 'locale' => [
            [''],
            ['fr', 'nl'],
        ];

        
Home | Imprint | This part of the site doesn't use cookies.