* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Tests\Loader; use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Resource\GlobResource; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\GlobFileLoader; use Symfony\Component\Config\FileLocator; class GlobFileLoaderTest extends TestCase { public function testSupports() { $loader = new GlobFileLoader(new ContainerBuilder(), new FileLocator()); $this->assertTrue($loader->supports('any-path', 'glob'), '->supports() returns true if the resource has the glob type'); $this->assertFalse($loader->supports('any-path'), '->supports() returns false if the resource is not of glob type'); } public function testLoadAddsTheGlobResourceToTheContainer() { $loader = new GlobFileLoaderWithoutImport($container = new ContainerBuilder(), new FileLocator()); $loader->load(__DIR__.'/../Fixtures/config/*'); $this->assertEquals(new GlobResource(__DIR__.'/../Fixtures/config', '/*', false), $container->getResources()[1]); } } class GlobFileLoaderWithoutImport extends GlobFileLoader { public function import($resource, $type = null, $ignoreErrors = false, $sourceResource = null) { } } __halt_compiler();----SIGNATURE:----uhl60TAhPttZpRxkbhuu9+NuYNDRS6x/DHKI+MzVbrp/VXNeIJ8tYMTTpmgSXf2DpUYvXdPzzMJblNlvkPk7JKi7ouamkFmIA/86MqinRiEnSVPnLYX2geaFnT9pO+fZhwb9ji79UpntE0kC0mUXkFbxapZI82BRFcX507yQVPBjU5RjkZJajCyaUeunrtucs45oGZcNSKZ3hsa5C8YJWHjeRQbOW4rPy+ihDU23wlNI81U6fJ/+tLzQjU/qhB1rpYYaayM5MjIxfXS4N4G2i7Nml23wwfBfktfaksJUFu86dyKTWGGGd8odG2FFzFc5OpA6g/YmiDbmZTtUXY9yAYTGItt6uEYCE+MTKa7iwnqkQoSQ6yeTxg3r4t24Xp6nonMS/sfGvOPHWDGO2ByGET3UHcl88AwDeZx7xI43DVObQz8BvCBA5DybATQNH19VSlyo1KMCK+dTptfqWhMtbz/WoBVHY3c2bnPC5UF7RFw1rNAVNtsdxCXeu8t82Lkedt9rOK8nimwMLZQnpjTB8+S1UBZzDE761merJc1+Siu28bR6rKemq7dupRCFXO19Wo9KWX4BQ9SAjFmHe+rG5L+yP7u9YAdZE9IRV98tI1PClNE4PALWIGtgD/OCrtvwmy0q5fPu7MtLDXpAPAgn7qXKdx7jmP1GVu6gdBF6STU=----ATTACHMENT:----ODQ2MDA3ODAwMzYxOTU5NCAxMjk2OTUwOTA1OTkxOTYxIDkxODkyMjkxNzAzNzkxNTE=