Esempio n. 1
0
 /**
  *
  * Test add outgoing connection
  */
 public function testAddOutgoingConnection()
 {
     $startEl = new Element('El7', 'E7');
     $endEl = new Element('El8', 'E8');
     $conn = new Connection($startEl, $endEl, 'conn4', 'c4');
     $startEl->addOutgoingConnection($conn);
     $outgoingConns = $startEl->getOutgoingConnections();
     $this->assertCount(1, $outgoingConns);
     $this->assertEquals($startEl, $outgoingConns[0]->getStartElement());
     return $startEl;
 }