@@ -49,7 +49,7 @@ public function testAlias()
4949 $ compiler = new \IvoPetkov \HTMLServerComponentsCompiler ();
5050 $ compiler ->addAlias ('component1 ' , 'file: ' . $ fullFilename );
5151
52- $ expectedResult = '<!DOCTYPE html><html><head></head>< body>text1</body></html> ' ;
52+ $ expectedResult = '<!DOCTYPE html><html><body>text1</body></html> ' ;
5353
5454 $ result = $ compiler ->process ('<component src="file: ' . $ fullFilename . '" /> ' );
5555 $ this ->assertTrue ($ result === $ expectedResult );
@@ -77,8 +77,8 @@ public function testVariables()
7777 public function testProccessRecursion ()
7878 {
7979 $ 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> ' );
8282
8383 $ compiler = new \IvoPetkov \HTMLServerComponentsCompiler ();
8484 $ result = $ compiler ->process ('<component src="file: ' . $ fullFilename3 . '"/> ' );
@@ -98,7 +98,7 @@ public function testProccessData()
9898
9999 $ compiler = new \IvoPetkov \HTMLServerComponentsCompiler ();
100100 $ 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> ' ;
102102 $ this ->assertTrue ($ result === $ expectedResult );
103103 }
104104
0 commit comments