Skip to content

Commit

Permalink
fixed failing tests with PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
darryldecode committed Sep 9, 2015
1 parent cb927bb commit 986a460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CartTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function test_cart_update_with_attribute_then_attributes_should_be_still_
// 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
Expand All @@ -140,7 +140,7 @@ public function test_cart_update_with_attribute_then_attributes_should_be_still_
);
$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()
Expand Down

0 comments on commit 986a460

Please sign in to comment.