@@ -49,7 +49,7 @@ public function testAlias()
49
49
$ compiler = new \IvoPetkov \HTMLServerComponentsCompiler ();
50
50
$ compiler ->addAlias ('component1 ' , 'file: ' . $ fullFilename );
51
51
52
- $ expectedResult = '<!DOCTYPE html><html><head></head>< body>text1</body></html> ' ;
52
+ $ expectedResult = '<!DOCTYPE html><html><body>text1</body></html> ' ;
53
53
54
54
$ result = $ compiler ->process ('<component src="file: ' . $ fullFilename . '" /> ' );
55
55
$ this ->assertTrue ($ result === $ expectedResult );
@@ -77,8 +77,8 @@ public function testVariables()
77
77
public function testProccessRecursion ()
78
78
{
79
79
$ fullFilename1 = $ this ->createFile ('component1.php ' , '<html><head><meta custom="value1"></head><body>text1</body></html> ' );
80
- $ fullFilename2 = $ this ->createFile ('component1 .php ' , '<html><head><meta custom="value2"></head><body><component src="file: ' . urlencode ($ fullFilename1 ) . '"></component>text2</body></html> ' );
81
- $ fullFilename3 = $ this ->createFile ('component1 .php ' , '<html><head><meta custom="value3"></head><body><component src="file: ' . urlencode ($ fullFilename2 ) . '"></component>text3</body></html> ' );
80
+ $ fullFilename2 = $ this ->createFile ('component2 .php ' , '<html><head><meta custom="value2"></head><body><component src="file: ' . urlencode ($ fullFilename1 ) . '"></component>text2</body></html> ' );
81
+ $ fullFilename3 = $ this ->createFile ('component3 .php ' , '<html><head><meta custom="value3"></head><body><component src="file: ' . urlencode ($ fullFilename2 ) . '"></component>text3</body></html> ' );
82
82
83
83
$ compiler = new \IvoPetkov \HTMLServerComponentsCompiler ();
84
84
$ result = $ compiler ->process ('<component src="file: ' . $ fullFilename3 . '"/> ' );
@@ -98,7 +98,7 @@ public function testProccessData()
98
98
99
99
$ compiler = new \IvoPetkov \HTMLServerComponentsCompiler ();
100
100
$ result = $ compiler ->process ('<component src="data:base64, ' . base64_encode ('<html><body>text1</body></html> ' ) . '" /> ' );
101
- $ expectedResult = '<!DOCTYPE html><html><head></head>< body>text1</body></html> ' ;
101
+ $ expectedResult = '<!DOCTYPE html><html><body>text1</body></html> ' ;
102
102
$ this ->assertTrue ($ result === $ expectedResult );
103
103
}
104
104
0 commit comments