From 1b7c78c0624e4c2062b63688fc1a6c6334a66496 Mon Sep 17 00:00:00 2001 From: Rob Gloudemans Date: Wed, 12 Feb 2014 20:18:48 +0100 Subject: [PATCH] Changed new array syntax to old array syntax for php5.3 --- tests/CartTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/CartTest.php b/tests/CartTest.php index ab6400c..fc69318 100644 --- a/tests/CartTest.php +++ b/tests/CartTest.php @@ -107,7 +107,7 @@ class CartTest extends PHPUnit_Framework_TestCase { $this->events->shouldReceive('fire')->once()->with('cart.update', m::type('string')); $this->cart->add('293ad', 'Product 1', 1, 9.99); - $this->cart->update('8cbf215baa3b757e910e5305ab981172', ['name' => 'Product 2']); + $this->cart->update('8cbf215baa3b757e910e5305ab981172', array('name' => 'Product 2')); $this->assertEquals('Product 2', $this->cart->content()->first()->name); } @@ -117,8 +117,8 @@ class CartTest extends PHPUnit_Framework_TestCase { $this->events->shouldReceive('fire')->once()->with('cart.add', m::type('array')); $this->events->shouldReceive('fire')->once()->with('cart.update', m::type('string')); - $this->cart->add('293ad', 'Product 1', 1, 9.99, ['size' => 'S']); - $this->cart->update('9be7e69d236ca2d09d2e0838d2c59aeb', ['options' => ['size' => 'L']]); + $this->cart->add('293ad', 'Product 1', 1, 9.99, array('size' => 'S')); + $this->cart->update('9be7e69d236ca2d09d2e0838d2c59aeb', array('options' => array('size' => 'L'))); $this->assertEquals('L', $this->cart->content()->first()->options->size); }