@@ -29,8 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | if(in_array($tag, Element::VOID_ELEMENTS)){ |
31 | 31 | $this->assertEquals('<'.$tag.'/>', $e->__toString()); |
32 | - } |
|
33 | - else { |
|
32 | + } else { |
|
34 | 33 | $this->assertEquals("<$tag></$tag>", $e->__toString()); |
35 | 34 | } |
36 | 35 | |
@@ -50,8 +49,7 @@ discard block |
||
50 | 49 | |
51 | 50 | if(in_array($tag, Element::VOID_ELEMENTS)){ |
52 | 51 | $this->assertEquals('<'.$tag.'/>', $e->__toString()); |
53 | - } |
|
54 | - else { |
|
52 | + } else { |
|
55 | 53 | $this->assertEquals("<$tag>$expected</$tag>", $e->__toString()); |
56 | 54 | } |
57 | 55 | |
@@ -121,8 +119,7 @@ discard block |
||
121 | 119 | $e = new Element($tag, $message, $attributes); |
122 | 120 | if(in_array($tag, Element::VOID_ELEMENTS)){ |
123 | 121 | $this->assertEquals(sprintf(Element::FORMAT_VOID, $tag, $attributes_expected_string), $e->__toString()); |
124 | - } |
|
125 | - else { |
|
122 | + } else { |
|
126 | 123 | $this->assertEquals(sprintf(Element::FORMAT_ELEMENT, $tag, $attributes_expected_string, $message, $tag), $e->__toString()); |
127 | 124 | } |
128 | 125 |