silverstripe-behat-extension/init.php
2012-08-15 16:50:19 +02:00

20 lines
525 B
PHP

<?php
/*
* This file is part of the Behat/SilverStripeExtension
*
* (c) Michał Ochman <ochman.d.michal@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
spl_autoload_register(function($class)
{
if (false !== strpos($class, 'Behat\\SilverStripeExtension')) {
require_once(__DIR__ . '/src/' . str_replace('\\', '/', $class) . '.php');
return true;
}
}, true, false);
return new Behat\SilverStripeExtension\Extension;