From 0821e9fa9f35de961ff3a5f6d6c416f4c8ac48a2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 19 Apr 2015 07:46:00 +0200 Subject: php-phpspec: 2.2.0 --- phpspec-autoload.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'phpspec-autoload.php') diff --git a/phpspec-autoload.php b/phpspec-autoload.php index fff41bc..47f19c5 100644 --- a/phpspec-autoload.php +++ b/phpspec-autoload.php @@ -1,5 +1,7 @@ registerNamespaces(array( +$ns = array( 'Doctrine\\Instantiator' => $vendorDir, 'SebastianBergmann' => $vendorDir, 'Symfony\\Component' => $vendorDir, 'PhpSpec' => dirname(__DIR__), -)); +); +/* spec tree in current dir, when exists */ +if (is_dir(getcwd().'/spec')) { + $ns['spec'] = getcwd(); +} +$loader->registerNamespaces($ns); $loader->register(); -- cgit