Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix declaration of mockery aggregate

  • Loading branch information...
commit c19f8c0066a6e92f15a028d47c01f64f3c32372b 1 parent 6f541e5
@l3l0 l3l0 authored
Showing with 1 addition and 2 deletions.
  1. +0 −1  bin/configure_test_env.sh
  2. +1 −1  spec/Gaufrette/Adapter/GridFS.php
View
1  bin/configure_test_env.sh
@@ -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
View
2  spec/Gaufrette/Adapter/GridFS.php
@@ -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
{
Please sign in to comment.
Something went wrong with that request. Please try again.