summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-02-17 15:43:51 +0100
committerRemi Collet <fedora@famillecollet.com>2015-02-17 15:43:51 +0100
commitf00533bc8f3fc163fda8617a265b7e228dcd0de9 (patch)
tree0d8576839ec6ac6a297bd757ece9709e39aeb707 /phpspec-autoload.php
php-phpspec: 2.1.1 - New package
Diffstat (limited to 'phpspec-autoload.php')
-rw-r--r--phpspec-autoload.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/phpspec-autoload.php b/phpspec-autoload.php
new file mode 100644
index 0000000..fff41bc
--- /dev/null
+++ b/phpspec-autoload.php
@@ -0,0 +1,16 @@
+<?php
+require_once 'phpspec/php-diff/autoload.php';
+require_once 'Prophecy/autoload.php';
+
+$vendorDir = '/usr/share/php';
+require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php';
+use Symfony\Component\ClassLoader\UniversalClassLoader;
+
+$loader = new UniversalClassLoader();
+$loader->registerNamespaces(array(
+ 'Doctrine\\Instantiator' => $vendorDir,
+ 'SebastianBergmann' => $vendorDir,
+ 'Symfony\\Component' => $vendorDir,
+ 'PhpSpec' => dirname(__DIR__),
+));
+$loader->register();