namespace Symfony\Component\Config\Tests\Resource;
use Composer\Autoload\ClassLoader;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Resource\ComposerResource;
class ComposerResourceTest extends TestCase
{ public function testGetVendor() { $res =
new ComposerResource();
$r =
new \
ReflectionClass(ClassLoader::
class);
$found = false;
foreach ($res->
getVendors() as $vendor) { if ($vendor &&
str_starts_with($r->
getFileName(),
$vendor)) { $found = true;
break;
} }