summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/tests/unit/Common/Transport
diff options
context:
space:
mode:
authorEoleDev <EoleDev@outlook.fr>2016-03-23 15:30:47 +0100
committerEoleDev <EoleDev@outlook.fr>2016-03-23 15:30:47 +0100
commit54ec6723deb44e325782afd366eeec01ee29ac55 (patch)
tree5431400d307754a02e6c40b35a40e6761d7dac0c /server/vendor/php-opencloud/common/tests/unit/Common/Transport
parent0dc17aa9efb987dcdf6f864f4110450bcc0c9003 (diff)
Maj Library
Diffstat (limited to 'server/vendor/php-opencloud/common/tests/unit/Common/Transport')
-rw-r--r--server/vendor/php-opencloud/common/tests/unit/Common/Transport/JsonSerializerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/vendor/php-opencloud/common/tests/unit/Common/Transport/JsonSerializerTest.php b/server/vendor/php-opencloud/common/tests/unit/Common/Transport/JsonSerializerTest.php
index 9075594..5e21833 100644
--- a/server/vendor/php-opencloud/common/tests/unit/Common/Transport/JsonSerializerTest.php
+++ b/server/vendor/php-opencloud/common/tests/unit/Common/Transport/JsonSerializerTest.php
@@ -47,8 +47,8 @@ class JsonSerializerTest extends \PHPUnit_Framework_TestCase
$itemSchema = $this->prophesize(Parameter::class);
$itemSchema->isArray()->shouldBeCalled()->willReturn(false);
$itemSchema->isObject()->shouldBeCalled()->willReturn(false);
- $itemSchema->getName()->shouldBeCalled()->willReturn(null);
- $itemSchema->getPath()->shouldBeCalled()->willReturn(null);
+ $itemSchema->getName()->shouldBeCalled()->willReturn('');
+ $itemSchema->getPath()->shouldBeCalled()->willReturn('');
$param->getItemSchema()->shouldBeCalled()->willReturn($itemSchema);
@@ -67,7 +67,7 @@ class JsonSerializerTest extends \PHPUnit_Framework_TestCase
$prop->isArray()->shouldBeCalled()->willReturn(false);
$prop->isObject()->shouldBeCalled()->willReturn(false);
$prop->getName()->shouldBeCalled()->willReturn('foo');
- $prop->getPath()->shouldBeCalled()->willReturn(null);
+ $prop->getPath()->shouldBeCalled()->willReturn('');
$param = $this->prophesize(Parameter::class);
$param->isArray()->shouldBeCalled()->willReturn(false);
@@ -78,7 +78,7 @@ class JsonSerializerTest extends \PHPUnit_Framework_TestCase
$expected = ['topLevel' => ['foo' => true]];
- $json = $this->serializer->stockJson($param->reveal(), ['foo' => true], []);
+ $json = $this->serializer->stockJson($param->reveal(), (object) ['foo' => true], []);
$this->assertEquals($expected, $json);
}