@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | $e = new Element($tag); |
| 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 | } |
@@ -47,8 +46,7 @@ discard block |
||
| 47 | 46 | |
| 48 | 47 | if(in_array($tag, Element::VOID_ELEMENTS)){ |
| 49 | 48 | $this->assertEquals('<'.$tag.'/>', $e->__toString()); |
| 50 | - } |
|
| 51 | - else { |
|
| 49 | + } else { |
|
| 52 | 50 | $this->assertEquals("<$tag>$expected</$tag>", $e->__toString()); |
| 53 | 51 | } |
| 54 | 52 | } |
@@ -115,8 +113,7 @@ discard block |
||
| 115 | 113 | $e = new Element($tag, $message, $attributes); |
| 116 | 114 | if(in_array($tag, Element::VOID_ELEMENTS)){ |
| 117 | 115 | $this->assertEquals(sprintf(Element::FORMAT_VOID, $tag, $attributes_expected_string), $e->__toString()); |
| 118 | - } |
|
| 119 | - else { |
|
| 116 | + } else { |
|
| 120 | 117 | $this->assertEquals(sprintf(Element::FORMAT_ELEMENT, $tag, $attributes_expected_string, $message, $tag), $e->__toString()); |
| 121 | 118 | } |
| 122 | 119 | } |