Skip to content

Commit d8bd81b

Browse files
authored
Converted line ending of some files in order to avoid warnings from git (OpenMage#3368)
1 parent 5ac1c17 commit d8bd81b

File tree

159 files changed

+89128
-89128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+89128
-89128
lines changed
Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
<?php
2-
declare(strict_types=1);
3-
4-
namespace OpenMage\Tests\Unit\Base;
5-
6-
use PHPUnit\Framework\TestCase;
7-
8-
class XmlFileLoadingTest extends TestCase
9-
{
10-
11-
public function provideXmlFiles(): array
12-
{
13-
$root = realpath(__DIR__ . '/../../../../') . '/';
14-
15-
$result = [];
16-
$result[] = [
17-
$root . 'vendor/shardj/zf1-future/library/Zend/Locale/Data/es_419.xml'
18-
];
19-
20-
return $result;
21-
}
22-
23-
/**
24-
*
25-
* @dataProvider provideXmlFiles
26-
* @param $filepath
27-
* @return void
28-
*/
29-
public function testFileLoading($filepath): void
30-
{
31-
//$simplexml = new \SimpleXMLElement(file_get_contents($filepath));
32-
$simplexml = simplexml_load_file(
33-
$filepath,
34-
null,
35-
LIBXML_PEDANTIC //not needed by OpenMage, but good to test more strictly
36-
);
37-
$this->assertNotEmpty($simplexml->asXML());
38-
}
39-
40-
/**
41-
*
42-
* @dataProvider provideXmlFiles
43-
* @param $filepath
44-
* @return void
45-
*/
46-
public function testXmlReaderIsValid($filepath): void
47-
{
48-
$xml = \XMLReader::open($filepath);
49-
$xml->setParserProperty(\XMLReader::VALIDATE, true);
50-
$this->assertTrue($xml->isValid());
51-
}
52-
}
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace OpenMage\Tests\Unit\Base;
5+
6+
use PHPUnit\Framework\TestCase;
7+
8+
class XmlFileLoadingTest extends TestCase
9+
{
10+
11+
public function provideXmlFiles(): array
12+
{
13+
$root = realpath(__DIR__ . '/../../../../') . '/';
14+
15+
$result = [];
16+
$result[] = [
17+
$root . 'vendor/shardj/zf1-future/library/Zend/Locale/Data/es_419.xml'
18+
];
19+
20+
return $result;
21+
}
22+
23+
/**
24+
*
25+
* @dataProvider provideXmlFiles
26+
* @param $filepath
27+
* @return void
28+
*/
29+
public function testFileLoading($filepath): void
30+
{
31+
//$simplexml = new \SimpleXMLElement(file_get_contents($filepath));
32+
$simplexml = simplexml_load_file(
33+
$filepath,
34+
null,
35+
LIBXML_PEDANTIC //not needed by OpenMage, but good to test more strictly
36+
);
37+
$this->assertNotEmpty($simplexml->asXML());
38+
}
39+
40+
/**
41+
*
42+
* @dataProvider provideXmlFiles
43+
* @param $filepath
44+
* @return void
45+
*/
46+
public function testXmlReaderIsValid($filepath): void
47+
{
48+
$xml = \XMLReader::open($filepath);
49+
$xml->setParserProperty(\XMLReader::VALIDATE, true);
50+
$this->assertTrue($xml->isValid());
51+
}
52+
}

0 commit comments

Comments
 (0)