/** * Test Client::bindUri with JsonSerializable object as data */ public function testBindUri_JsonSerialize() { $mock = $this->getMock('JsonSerializable'); $mock->method('jsonSerialize')->will($this->returnValue(['id' => 10])); $this->assertSame('/foo/bar/10', Client::bindUri('/foo/bar/:id', [], $mock)); }