validate(); $this->assertEquals([], $link->getErrors()); $this->assertTrue($result); $this->assertEquals(null, $link->operationRef); $this->assertEquals('getUserAddress', $link->operationId); $this->assertEquals(['userId' => 'test.path.id'], $link->parameters); $this->assertEquals(null, $link->requestBody); $this->assertEquals(null, $link->server); } public function testValidateBothOperationIdAndOperationRef() { /** @var $link Link */ $link = Reader::readFromJson(<<validate(); $this->assertEquals([ 'Link: operationId and operationRef are mutually exclusive.' ], $link->getErrors()); $this->assertFalse($result); } }