Skip to content

Commit

Permalink
Fix test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Jan 5, 2018
1 parent 22f4169 commit ba0d1d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Stripe/StripeObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit ba0d1d3

Please sign in to comment.