@@ -227,9 +227,9 @@ public function testGetNamespaceURIs(): void
227227 $ xml ->addElement ('rss ' , [
228228 'xmlns:a ' => 'a.xsd ' ,
229229 'xmlns:b ' => 'b.xsd ' ,
230- 'xmlnse ' => 'e.xsd ' ,
231- 'xmlns ' => 'default.xsd ' ,
232- 'a:test ' => '1 ' ,
230+ 'xmlnse ' => 'e.xsd ' ,
231+ 'xmlns ' => 'default.xsd ' ,
232+ 'a:test ' => '1 ' ,
233233 ]);
234234
235235 self ::assertSame (
@@ -248,7 +248,7 @@ public function testGetNamespaceURI(): void
248248
249249 $ xml ->addElement ('rss ' , [
250250 'xmlns:a ' => 'a.xsd ' ,
251- 'xmlns ' => 'default.xsd ' ,
251+ 'xmlns ' => 'default.xsd ' ,
252252 ]);
253253
254254 self ::assertSame ('a.xsd ' , $ xml ->getNamespace ('a ' ));
@@ -308,7 +308,7 @@ public function testAttributeEmptyName(): void
308308
309309 $ xml ->addElement ('rss ' , [
310310 'a:a ' => '1 ' ,
311- 'a: ' => '2 ' ,
311+ 'a: ' => '2 ' ,
312312 ]);
313313 }
314314
@@ -321,7 +321,7 @@ public function testAttributeEmptyPrefix(): void
321321
322322 $ xml ->addElement ('rss ' , [
323323 'a:a ' => '1 ' ,
324- ':a ' => '2 ' ,
324+ ':a ' => '2 ' ,
325325 ]);
326326 }
327327
@@ -411,10 +411,10 @@ public function testDefaultXmlnsAttributes(): void
411411
412412 public function testValidateXsd (): void
413413 {
414- $ xml = $ this ->newDocument ();
414+ $ xml = $ this ->newDocument ();
415415 $ feed = $ xml ->addElement ('g:feed ' , [
416416 'g:version ' => '2.0 ' ,
417- 'xmlns:g ' => 'stock.xsd ' ,
417+ 'xmlns:g ' => 'stock.xsd ' ,
418418 ]);
419419
420420 $ feed ->addTextElement ('g:updated ' , '2020-08-25T13:53:38+00:00 ' );
@@ -437,10 +437,10 @@ public function testValidateXsdFromOutput(): void
437437 {
438438 $ this ->expectNotToPerformAssertions ();
439439
440- $ xml = $ this ->newDocument ();
440+ $ xml = $ this ->newDocument ();
441441 $ feed = $ xml ->addElement ('g:feed ' , [
442442 'g:version ' => '2.0 ' ,
443- 'xmlns:g ' => 'stock.xsd ' ,
443+ 'xmlns:g ' => 'stock.xsd ' ,
444444 ]);
445445
446446 $ feed ->addTextElement ('g:updated ' , '2020-08-25T13:53:38+00:00 ' );
@@ -480,7 +480,7 @@ public function testValidateWithoutXmlns(): void
480480 {
481481 $ this ->expectException (DOMException::class);
482482
483- $ xml = $ this ->newDocument ();
483+ $ xml = $ this ->newDocument ();
484484 $ feed = $ xml ->addElement ('g:feed ' , [
485485 'g:version ' => '2.0 ' ,
486486 ]);
@@ -500,7 +500,7 @@ public function testValidateWithoutAttributePrefix(): void
500500 {
501501 $ this ->expectException (DOMException::class);
502502
503- $ xml = $ this ->newDocument ();
503+ $ xml = $ this ->newDocument ();
504504 $ feed = $ xml ->addElement ('g:feed ' , [
505505 'version ' => '2.0 ' ,
506506 'xmlns:g ' => 'stock.xsd ' ,
@@ -521,7 +521,7 @@ public function testValidateWithoutElementPrefix(): void
521521 {
522522 $ this ->expectException (DOMException::class);
523523
524- $ xml = $ this ->newDocument ();
524+ $ xml = $ this ->newDocument ();
525525 $ feed = $ xml ->addElement ('feed ' , [
526526 'version ' => '2.0 ' ,
527527 'xmlns:g ' => 'stock.xsd ' ,
@@ -542,10 +542,10 @@ public function testValidateInvalidXml(): void
542542 {
543543 $ this ->expectException (DOMException::class);
544544
545- $ xml = $ this ->newDocument ();
545+ $ xml = $ this ->newDocument ();
546546 $ feed = $ xml ->addElement ('g:feed ' , [
547547 'g:version ' => '2.0 ' ,
548- 'xmlns:g ' => 'stock.xsd ' ,
548+ 'xmlns:g ' => 'stock.xsd ' ,
549549 ]);
550550
551551 $ items = $ feed ->addElement ('g:items ' );
@@ -561,7 +561,7 @@ public function testValidateInvalidXml(): void
561561 public function testFormattedOutput (): void
562562 {
563563 $ factory = $ this ->newDocumentFactory ();
564- $ xml = $ factory ->createForContent ('<?xml version="1.0" encoding="UTF-8"?><root><a><b1>1</b1><b2>test</b2></a></root> ' );
564+ $ xml = $ factory ->createForContent ('<?xml version="1.0" encoding="UTF-8"?><root><a><b1>1</b1><b2>test</b2></a></root> ' );
565565
566566 self ::assertSame (
567567 self ::getSampleXMLString (
@@ -581,7 +581,7 @@ public function testFormattedOutput(): void
581581 public function testSaveMethod (): void
582582 {
583583 $ factory = $ this ->newDocumentFactory ();
584- $ xml = $ factory ->createForFile (self ::getTestFilePath ('sample_01.xml ' ));
584+ $ xml = $ factory ->createForFile (self ::getTestFilePath ('sample_01.xml ' ));
585585
586586 $ name = (string ) tempnam (sys_get_temp_dir (), 'xml_tests_ ' );
587587 self ::assertSame ('' , file_get_contents ($ name ));
@@ -597,7 +597,7 @@ public function testSaveMethod(): void
597597 public function testSaveMethodWithFormatOutput (): void
598598 {
599599 $ factory = $ this ->newDocumentFactory ();
600- $ xml = $ factory ->createForFile (self ::getTestFilePath ('sample_01.xml ' ));
600+ $ xml = $ factory ->createForFile (self ::getTestFilePath ('sample_01.xml ' ));
601601
602602 $ name = (string ) tempnam (sys_get_temp_dir (), 'xml_tests_ ' );
603603 self ::assertSame ('' , file_get_contents ($ name ));
0 commit comments