1<?php 2 3declare(strict_types=1); 4 5use Doctrine\Common\Annotations\AnnotationRegistry; 6 7(static function () { 8 if (!is_file($autoloadFile = __DIR__ . '/../vendor/autoload.php')) { 9 throw new RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?'); 10 } 11 12 $loader = require $autoloadFile; 13 $loader->add('JMS\Serializer\Tests', __DIR__); 14 15 AnnotationRegistry::registerLoader('class_exists'); 16})(); 17