diff --git a/.travis.yml b/.travis.yml index db0f66d..8024f5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ php: - 5.6 before_script: - - curl -s http://getcomposer.org/installer | php - - php composer.phar install --dev + - composer self-update + - composer install --prefer-source --no-interaction --dev script: phpunit \ No newline at end of file diff --git a/tests/CartTest.php b/tests/CartTest.php index fc69318..1235522 100644 --- a/tests/CartTest.php +++ b/tests/CartTest.php @@ -222,7 +222,8 @@ class CartTest extends PHPUnit_Framework_TestCase { $this->cart->add('293ad', 'Product 1', 1, 9.99); - $this->assertEquals('8cbf215baa3b757e910e5305ab981172', $this->cart->search(array('id' => '293ad'))[0]); + $searchResult = $this->cart->search(array('id' => '293ad')); + $this->assertEquals('8cbf215baa3b757e910e5305ab981172', $searchResult[0]); } public function testCartCanHaveMultipleInstances()