示例#1
0
 public function testThatTheRoleTypeReturnedComesFromClientAdapter()
 {
     $masterClientAdapter = $this->mockClientAdapterForMaster();
     $masterNode = new Client($this->ipAddress, $this->port, $masterClientAdapter);
     $this->assertEquals(Client::ROLE_MASTER, $masterNode->getRoleType(), 'The type of role of the node is provided by the client adapter');
 }