Code Duplication    Length = 12-12 lines in 2 locations

Grafizzi/Graph/Tests/EdgeTest.php 2 locations

@@ 126-137 (lines=12) @@
123
  }
124
125
  // Attribute list with empty title in middle on edge bound to root graph.
126
  public function testBuildAttributesEmptyMiddle() {
127
    $expected = <<<EOT
128
  source -> destination [ foo=bar, baz=quux ];
129
130
EOT;
131
132
    $this->buildTestHelper($expected, array(
133
      array('foo', 'bar'),
134
      array('title', ''),
135
      array('baz', 'quux'),
136
    ));
137
  }
138
139
  // Attribute list with empty title as single attribute on edge bound to root graph.
140
  public function testBuildAttributesOnlyEmpty() {
@@ 152-163 (lines=12) @@
149
  }
150
151
  // Attribute list with empty title as last attribute on edge bound to root graph.
152
  public function testBuildAttributesEmptyLast() {
153
    $expected = <<<EOT
154
  source -> destination [ foo=bar, baz=quux ];
155
156
EOT;
157
158
    $this->buildTestHelper($expected, array(
159
      array('foo', 'bar'),
160
      array('baz', 'quux'),
161
      array('title', ''),
162
    ));
163
  }
164
165
  /**
166
   * Tests Edge::getAllowedChildTypes()