Skip to content

Commit 986a460

Browse files
committed
fixed failing tests with PHP 5.4
1 parent cb927bb commit 986a460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/CartTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function test_cart_update_with_attribute_then_attributes_should_be_still_
128128
// ItemAttributeCollection
129129
$item = $this->cart->get(456);
130130

131-
$this->assertInstanceOf(\Darryldecode\Cart\ItemAttributeCollection::class, $item->attributes);
131+
$this->assertInstanceOf('Darryldecode\Cart\ItemAttributeCollection', $item->attributes);
132132

133133
// now lets update the item with its new attributes
134134
// when we get that item from cart, it should still be an instance of ItemAttributeCollection
@@ -140,7 +140,7 @@ public function test_cart_update_with_attribute_then_attributes_should_be_still_
140140
);
141141
$this->cart->update(456,$updatedItem);
142142

143-
$this->assertInstanceOf(\Darryldecode\Cart\ItemAttributeCollection::class, $item->attributes);
143+
$this->assertInstanceOf('Darryldecode\Cart\ItemAttributeCollection', $item->attributes);
144144
}
145145

146146
public function test_cart_items_attributes()

0 commit comments

Comments
 (0)