Skip to content

Commit f7b4265

Browse files
committed
wip
1 parent 1a6b9cc commit f7b4265

12 files changed

+12
-30
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 7.0
54
- 7.1
65
- 7.2
76
- 7.3

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
All notable changes to `array-to-xml` will be documented in this file
44

5+
56
## 2.8.0 - 2018-11-29
67

78
- added support for mixed content

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
}
1818
],
1919
"require": {
20-
"php" : "^7.0"
20+
"php" : "^7.1"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit" : "^6.3",
23+
"phpunit/phpunit" : "^7.0",
2424
"mockery/mockery": "^1.0",
25-
"spatie/phpunit-snapshot-assertions": "^1.0"
25+
"spatie/phpunit-snapshot-assertions": "^2.0"
2626
},
2727
"autoload": {
2828
"psr-4": {

phpunit.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
99
processIsolation="false"
10-
stopOnFailure="false"
11-
syntaxCheck="false">
10+
stopOnFailure="false">
1211
<testsuites>
1312
<testsuite name="Application Test Suite">
1413
<directory>./tests/</directory>

tests/ArrayToXmlTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ArrayToXmlTest extends TestCase
1111
/** @test array */
1212
protected $testArray = [];
1313

14-
public function setUp()
14+
public function setUp(): void
1515
{
1616
$this->testArray = [
1717
'Good guy' => [
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?php
2-
3-
return '<?xml version="1.0"?>
1+
<?php return '<?xml version="1.0"?>
42
<root><movie><title category="SF"><![CDATA[<p>STAR WARS</p>]]></title></movie><movie><title category="Children"><![CDATA[<p>tom & jerry</p>]]></title></movie></root>
53
';
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?php
2-
3-
return '<?xml version="1.0"?>
1+
<?php return '<?xml version="1.0"?>
42
<root><movie><title category="SF">STAR WARS <xref ref-type="fig" rid="f1">Figure 1</xref></title></movie><movie><title category="Action">ROBOCOP <xref ref-type="fig" rid="f2">Figure 2</xref></title></movie></root>
53
';
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?php
2-
3-
return '<?xml version="1.1"?>
1+
<?php return '<?xml version="1.1"?>
42
<root/>
53
';

tests/__snapshots__/ArrayToXmlTest__it_can_convert_an_array_to_xml__1.php

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?php
2-
3-
return '<?xml version="1.0"?>
1+
<?php return '<?xml version="1.0"?>
42
<root><movie><title category="SF"><![CDATA[<p>STAR WARS</p>]]></title></movie><movie><title category="Children"><![CDATA[<p>tom & jerry</p>]]></title></movie></root>
53
';
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?php
2-
3-
return '<?xml version="1.0"?>
1+
<?php return '<?xml version="1.0"?>
42
<root><movie><title category="SF">STAR WARS <xref ref-type="fig" rid="f1">Figure 1</xref></title></movie><movie><title category="Action">ROBOCOP <xref ref-type="fig" rid="f2">Figure 2</xref></title></movie></root>
53
';
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?php
2-
3-
return '<?xml version="1.0"?>
1+
<?php return '<?xml version="1.0"?>
42
<root><books><book z="1"><name>A</name></book><book><name>B</name></book><book><name>C</name></book></books></root>
53
';

0 commit comments

Comments
 (0)