public function testSkipEdgeException()
{
$visitor = $this->mockVisitor();
$visitor->expects($this->once())->method('getEdgeAttributes')->willThrowException(new SkipElementException());
$g = $this->providerGraphviz();
$sm = new StateMachine();
$sm->addState(new State('s1', State::TYPE_INITIAL));
$sm->addState(new State('s2', State::TYPE_FINAL));
$sm->addTransition('t12', 's1', 's2');
$g->addVisitor($visitor);
$dot = $g->render($sm);
$this->assertNotContains('"t12"', $dot);
$this->assertContains('"s1"', $dot);
$this->assertContains('"s2"', $dot);
}