Permalink
Browse files

Fix declaration of mockery aggregate

  • Loading branch information...
1 parent 6f541e5 commit c19f8c0066a6e92f15a028d47c01f64f3c32372b @l3l0 l3l0 committed Dec 7, 2012
Showing with 1 addition and 2 deletions.
  1. +0 −1 bin/configure_test_env.sh
  2. +1 −1 spec/Gaufrette/Adapter/GridFS.php
@@ -4,6 +4,5 @@ sudo apt-get install libssh2-1-dev libssh2-php &> /dev/null
sudo pecl install mongo &> /dev/null
touch .interactive
(sudo pecl install -f ssh2 < .interactive) &> /dev/null
-sudo pecl info mongo
cp tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist tests/Gaufrette/Functional/adapters/DoctrineDbal.php -f
@@ -5,7 +5,7 @@
use PHPSpec2\ObjectBehavior;
//Hack cause of new version of mongo-ext https://github.com/padraic/mockery/issues/110
-\Mockery::getConfiguration()->setInternalClassMethodParamMap("MongoCollection", "aggregate", array('&$pipeline', '&$op'));
+\Mockery::getConfiguration()->setInternalClassMethodParamMap("MongoCollection", "aggregate", array('$pipeline', '$op = null', '$some = null'));
class GridFS extends ObjectBehavior
{

0 comments on commit c19f8c0

Please sign in to comment.