<?php

/*
 * This file is part of the broadway/broadway package.
 *
 * (c) Qandidate.com <opensource@qandidate.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

if (file_exists($file = __DIR__ . '/../vendor/autoload.php')) {
    $loader = require_once $file;
    $loader->add('Broadway', __DIR__);
} else {
    throw new RuntimeException('Install dependencies to run test suite.');
}

<?php

/*
 * This file is part of the broadway/broadway package.
 *
 * (c) Qandidate.com <opensource@qandidate.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

if (file_exists($file = __DIR__ . '/../vendor/autoload.php')) {
    $loader = require $file;
    $loader->add('Broadway', __DIR__);
} else {
    throw new RuntimeException('Install dependencies to run test suite.');
}

Use require instead of require_once when retrieving loader
Use require instead of require_once when retrieving loader
