@@ -227,9 +227,9 @@ public function testGetNamespaceURIs(): void
227
227
$ xml ->addElement ('rss ' , [
228
228
'xmlns:a ' => 'a.xsd ' ,
229
229
'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 ' ,
233
233
]);
234
234
235
235
self ::assertSame (
@@ -248,7 +248,7 @@ public function testGetNamespaceURI(): void
248
248
249
249
$ xml ->addElement ('rss ' , [
250
250
'xmlns:a ' => 'a.xsd ' ,
251
- 'xmlns ' => 'default.xsd ' ,
251
+ 'xmlns ' => 'default.xsd ' ,
252
252
]);
253
253
254
254
self ::assertSame ('a.xsd ' , $ xml ->getNamespace ('a ' ));
@@ -308,7 +308,7 @@ public function testAttributeEmptyName(): void
308
308
309
309
$ xml ->addElement ('rss ' , [
310
310
'a:a ' => '1 ' ,
311
- 'a: ' => '2 ' ,
311
+ 'a: ' => '2 ' ,
312
312
]);
313
313
}
314
314
@@ -321,7 +321,7 @@ public function testAttributeEmptyPrefix(): void
321
321
322
322
$ xml ->addElement ('rss ' , [
323
323
'a:a ' => '1 ' ,
324
- ':a ' => '2 ' ,
324
+ ':a ' => '2 ' ,
325
325
]);
326
326
}
327
327
@@ -411,10 +411,10 @@ public function testDefaultXmlnsAttributes(): void
411
411
412
412
public function testValidateXsd (): void
413
413
{
414
- $ xml = $ this ->newDocument ();
414
+ $ xml = $ this ->newDocument ();
415
415
$ feed = $ xml ->addElement ('g:feed ' , [
416
416
'g:version ' => '2.0 ' ,
417
- 'xmlns:g ' => 'stock.xsd ' ,
417
+ 'xmlns:g ' => 'stock.xsd ' ,
418
418
]);
419
419
420
420
$ feed ->addTextElement ('g:updated ' , '2020-08-25T13:53:38+00:00 ' );
@@ -437,10 +437,10 @@ public function testValidateXsdFromOutput(): void
437
437
{
438
438
$ this ->expectNotToPerformAssertions ();
439
439
440
- $ xml = $ this ->newDocument ();
440
+ $ xml = $ this ->newDocument ();
441
441
$ feed = $ xml ->addElement ('g:feed ' , [
442
442
'g:version ' => '2.0 ' ,
443
- 'xmlns:g ' => 'stock.xsd ' ,
443
+ 'xmlns:g ' => 'stock.xsd ' ,
444
444
]);
445
445
446
446
$ feed ->addTextElement ('g:updated ' , '2020-08-25T13:53:38+00:00 ' );
@@ -480,7 +480,7 @@ public function testValidateWithoutXmlns(): void
480
480
{
481
481
$ this ->expectException (DOMException::class);
482
482
483
- $ xml = $ this ->newDocument ();
483
+ $ xml = $ this ->newDocument ();
484
484
$ feed = $ xml ->addElement ('g:feed ' , [
485
485
'g:version ' => '2.0 ' ,
486
486
]);
@@ -500,7 +500,7 @@ public function testValidateWithoutAttributePrefix(): void
500
500
{
501
501
$ this ->expectException (DOMException::class);
502
502
503
- $ xml = $ this ->newDocument ();
503
+ $ xml = $ this ->newDocument ();
504
504
$ feed = $ xml ->addElement ('g:feed ' , [
505
505
'version ' => '2.0 ' ,
506
506
'xmlns:g ' => 'stock.xsd ' ,
@@ -521,7 +521,7 @@ public function testValidateWithoutElementPrefix(): void
521
521
{
522
522
$ this ->expectException (DOMException::class);
523
523
524
- $ xml = $ this ->newDocument ();
524
+ $ xml = $ this ->newDocument ();
525
525
$ feed = $ xml ->addElement ('feed ' , [
526
526
'version ' => '2.0 ' ,
527
527
'xmlns:g ' => 'stock.xsd ' ,
@@ -542,10 +542,10 @@ public function testValidateInvalidXml(): void
542
542
{
543
543
$ this ->expectException (DOMException::class);
544
544
545
- $ xml = $ this ->newDocument ();
545
+ $ xml = $ this ->newDocument ();
546
546
$ feed = $ xml ->addElement ('g:feed ' , [
547
547
'g:version ' => '2.0 ' ,
548
- 'xmlns:g ' => 'stock.xsd ' ,
548
+ 'xmlns:g ' => 'stock.xsd ' ,
549
549
]);
550
550
551
551
$ items = $ feed ->addElement ('g:items ' );
@@ -561,7 +561,7 @@ public function testValidateInvalidXml(): void
561
561
public function testFormattedOutput (): void
562
562
{
563
563
$ 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> ' );
565
565
566
566
self ::assertSame (
567
567
self ::getSampleXMLString (
@@ -581,7 +581,7 @@ public function testFormattedOutput(): void
581
581
public function testSaveMethod (): void
582
582
{
583
583
$ factory = $ this ->newDocumentFactory ();
584
- $ xml = $ factory ->createForFile (self ::getTestFilePath ('sample_01.xml ' ));
584
+ $ xml = $ factory ->createForFile (self ::getTestFilePath ('sample_01.xml ' ));
585
585
586
586
$ name = (string ) tempnam (sys_get_temp_dir (), 'xml_tests_ ' );
587
587
self ::assertSame ('' , file_get_contents ($ name ));
@@ -597,7 +597,7 @@ public function testSaveMethod(): void
597
597
public function testSaveMethodWithFormatOutput (): void
598
598
{
599
599
$ factory = $ this ->newDocumentFactory ();
600
- $ xml = $ factory ->createForFile (self ::getTestFilePath ('sample_01.xml ' ));
600
+ $ xml = $ factory ->createForFile (self ::getTestFilePath ('sample_01.xml ' ));
601
601
602
602
$ name = (string ) tempnam (sys_get_temp_dir (), 'xml_tests_ ' );
603
603
self ::assertSame ('' , file_get_contents ($ name ));
0 commit comments