From 1bf701bf9039cb6d7a185ebe4a3fad02d0b1f0be Mon Sep 17 00:00:00 2001 From: Jamie Hannaford Date: Mon, 11 Apr 2016 11:59:39 +0200 Subject: [PATCH] fix test --- tests/unit/Common/Transport/JsonSerializerTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/unit/Common/Transport/JsonSerializerTest.php b/tests/unit/Common/Transport/JsonSerializerTest.php index b14f6a8..ff0de07 100644 --- a/tests/unit/Common/Transport/JsonSerializerTest.php +++ b/tests/unit/Common/Transport/JsonSerializerTest.php @@ -153,15 +153,11 @@ public function test_exception_is_thrown_when_non_stdClass_or_serializable_objec $subParam = $this->prophesize(Parameter::class); $subParam->isArray()->shouldBeCalled()->willReturn(false); $subParam->isObject()->shouldBeCalled()->willReturn(true); - $subParam->getName()->shouldBeCalled()->willReturn('sub_resource'); - $subParam->getPath()->shouldBeCalled()->willReturn(''); $param = $this->prophesize(Parameter::class); $param->isArray()->shouldBeCalled()->willReturn(false); $param->isObject()->shouldBeCalled()->willReturn(true); $param->getProperty('subResource')->shouldBeCalled()->willReturn($subParam); - $param->getName()->shouldBeCalled()->willReturn('resource'); - $param->getPath()->shouldBeCalled()->willReturn(''); $userValues = ['subResource' => new NonSerializableResource()];