Commit 986a4607 authored by darrylcoder's avatar darrylcoder
Browse files

fixed failing tests with PHP 5.4

parent cb927bb3
......@@ -128,7 +128,7 @@ class CartTest extends PHPUnit_Framework_TestCase {
// ItemAttributeCollection
$item = $this->cart->get(456);
$this->assertInstanceOf(\Darryldecode\Cart\ItemAttributeCollection::class, $item->attributes);
$this->assertInstanceOf('Darryldecode\Cart\ItemAttributeCollection', $item->attributes);
// now lets update the item with its new attributes
// when we get that item from cart, it should still be an instance of ItemAttributeCollection
......@@ -140,7 +140,7 @@ class CartTest extends PHPUnit_Framework_TestCase {
);
$this->cart->update(456,$updatedItem);
$this->assertInstanceOf(\Darryldecode\Cart\ItemAttributeCollection::class, $item->attributes);
$this->assertInstanceOf('Darryldecode\Cart\ItemAttributeCollection', $item->attributes);
}
public function test_cart_items_attributes()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment