@@ -23,12 +23,12 @@ protected function setUp(): void
23
23
/** @test */
24
24
public function getManualParts_WithMinimumTags_CreatePartsObject ()
25
25
{
26
- $ content = '
26
+ $ content = <<<XML
27
27
<documentation title="Title">
28
28
<rule_code>Rule.Code</rule_code>
29
29
<standard>Description</standard>
30
30
</documentation>
31
- ' ;
31
+ XML ;
32
32
file_put_contents (self ::XML_FILE_PATH , $ content );
33
33
$ parts = $ this ->parser ->getManualParts (self ::XML_FILE_PATH );
34
34
self ::assertEquals (
@@ -45,21 +45,21 @@ public function getManualParts_WithMinimumTags_CreatePartsObject()
45
45
/** @test */
46
46
public function getManualParts_WithCodeComparisons_AddTrimmedDiffs ()
47
47
{
48
- $ content = '
48
+ $ content = <<<XML
49
49
<documentation title="Title">
50
50
<rule_code>Rule.Code</rule_code>
51
51
<standard>Description</standard>
52
52
<code_comparison>
53
53
<code>
54
54
<![CDATA[
55
- function a() {
56
- }
55
+ function a() {
56
+ }
57
57
]]>
58
58
</code>
59
59
<code>
60
60
<![CDATA[
61
- function b() {
62
- }
61
+ function b() {
62
+ }
63
63
]]>
64
64
</code>
65
65
</code_comparison>
@@ -68,7 +68,7 @@ function b() {
68
68
<code>b();</code>
69
69
</code_comparison>
70
70
</documentation>
71
- ' ;
71
+ XML ;
72
72
file_put_contents (self ::XML_FILE_PATH , $ content );
73
73
$ parts = $ this ->parser ->getManualParts (self ::XML_FILE_PATH );
74
74
self ::assertEquals (
@@ -83,7 +83,7 @@ function b() {
83
83
/** @test */
84
84
public function getManualParts_WithLinks_AddLinks ()
85
85
{
86
- $ content = '
86
+ $ content = <<<XML
87
87
<documentation title="Title">
88
88
<rule_code>Rule.Code</rule_code>
89
89
<standard>Description</standard>
@@ -92,7 +92,7 @@ public function getManualParts_WithLinks_AddLinks()
92
92
<link>http://link2.com</link>
93
93
</links>
94
94
</documentation>
95
- ' ;
95
+ XML ;
96
96
file_put_contents (self ::XML_FILE_PATH , $ content );
97
97
$ parts = $ this ->parser ->getManualParts (self ::XML_FILE_PATH );
98
98
self ::assertEquals (
0 commit comments