From b97f04d5b74a146a2d71be1b739b41b7dca4de11 Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Thu, 4 Jan 2018 23:12:02 +0100 Subject: [PATCH] Fix test after rebase --- tests/Stripe/StripeObjectTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Stripe/StripeObjectTest.php b/tests/Stripe/StripeObjectTest.php index d5ebb1f56..563611ec4 100644 --- a/tests/Stripe/StripeObjectTest.php +++ b/tests/Stripe/StripeObjectTest.php @@ -183,11 +183,11 @@ public function testSerializeParametersOnArrayThatLengthens() public function testSerializeParametersOnArrayOfHashes() { - $obj = StripeObject::constructFrom([ - 'foo' => [ - StripeObject::constructFrom(['bar' => null]), - ], - ]); + $obj = StripeObject::constructFrom(['foo' => null]); + $obj->foo = [ + StripeObject::constructFrom(['bar' => null]), + ]; + $obj->foo[0]->bar = 'baz'; $this->assertSame(['foo' => [['bar' => 'baz']]], $obj->serializeParameters()); }