use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Exception\LoaderLoadException;
use Symfony\Component\Config\Loader\DelegatingLoader;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Config\Loader\LoaderResolver;
class DelegatingLoaderTest extends TestCase
{ public function testConstructor() { new DelegatingLoader($resolver =
new LoaderResolver());
$this->
assertTrue(true, '__construct() takes a loader resolver as its first argument'
);
} public function testGetSetResolver() { $resolver =
new LoaderResolver();
$loader =
new DelegatingLoader($resolver);
$this->
assertSame($resolver,
$loader->
getResolver(), '->getResolver() gets the resolver loader'
);
$loader->
setResolver($resolver =
new LoaderResolver());
$this->
assertSame($resolver,
$loader->
getResolver(), '->setResolver() sets the resolver loader'
);
}