Fixed test for php5.3

This commit is contained in:
Rob Gloudemans
2014-02-12 20:28:38 +01:00
parent a0fe0d69e7
commit 682968587a
2 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ php:
- 5.6 - 5.6
before_script: before_script:
- curl -s http://getcomposer.org/installer | php - composer self-update
- php composer.phar install --dev - composer install --prefer-source --no-interaction --dev
script: phpunit script: phpunit

View File

@@ -222,7 +222,8 @@ class CartTest extends PHPUnit_Framework_TestCase {
$this->cart->add('293ad', 'Product 1', 1, 9.99); $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() public function testCartCanHaveMultipleInstances()