示例#1
0
 public function testAddBridgeDst()
 {
     $node = new Node();
     $this->assertEquals(array(), $node->getBridgeDst());
     $node->addBridgeDst(array());
     $this->assertEquals(array(), $node->getBridgeDst());
     $node->addBridgeDst(array('192.168.241.24:25000'));
     $this->assertEquals(array('192.168.241.24:25000'), $node->getBridgeDst());
     $node->addBridgeDst(array('192.168.241.25:25000'));
     $this->assertEquals(array('192.168.241.24:25000', '192.168.241.25:25000'), $node->getBridgeDst());
     $node->addBridgeDst('192.168.241.26:25000');
     $this->assertEquals(array('192.168.241.24:25000', '192.168.241.25:25000', '192.168.241.26:25000'), $node->getBridgeDst());
 }