summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
diff options
context:
space:
mode:
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();