8000 Apply fixes from StyleCI · symfony-cmf/Testing@ec7c793 · GitHub
[go: up one dir, main page]

Skip to content

Commit ec7c793

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 504f9ab commit ec7c793

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

src/Functional/BaseTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ protected static function assertResponseSuccess(Response $response)
178178
{
179179
libxml_use_internal_errors(true);
180180

181-
$dom = new \DomDocument();
181+
$dom = new \DOMDocument();
182182
$dom->loadHTML($response->getContent());
183183

184-
$xpath = new \DOMXpath($dom);
184+
$xpath = new \DOMXPath($dom);
185185
$result = $xpath->query('//div[contains(@class,"text-exception")]/h1');
186186
$exception = null;
187187
if ($result->length) {

src/Unit/Constraint/SchemaAcceptsXml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function matches($schemaFile): bool
3535
throw new \InvalidArgumentException(sprintf('Can only test a file if it contains 1 <config> element, %d given', $configElement->length));
3636
}
3737

38-
$configDom = new \DomDocument();
38+
$configDom = new \DOMDocument();
3939
$configDom->appendChild($configDom->importNode($configElement->item(0), true));
4040

4141
libxml_use_internal_errors(true);

tests/Functional/BaseTestCaseTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public function provideTestDb()
122122

123123
/**
124124
* @dataProvider provideTestDb
125+
*
125126
* @depends testGetContainer
126127
*/
127128
public function testDb($dbName, $expected)

tests/Unit/Constraint/SchemaAcceptsXmlTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public function getAssertingData()
5353

5454
$data = [];
5555

56-
$dom1 = new \DomDocument();
56+
$dom1 = new \DOMDocument();
5757
$dom1->loadXML('<container><config xmlns="http://cmf.symfony.com/schema/dic/foo" required="f"/></container>');
5858
$data[] = [[$dom1], $schema1, true];
5959

60-
$dom2 = new \DomDocument();
60+
$dom2 = new \DOMDocument();
6161
$dom2->loadXML('<container><config xmlns="http://cmf.symfony.com/schema/dic/foo" /></container>');
6262
$data[] = [[$dom2], $schema1, false];
6363

@@ -70,7 +70,7 @@ public function getAssertingData()
7070

7171
public function testFailsIfNoConfigElementIsAvailable()
7272
{
73-
$dom = new \DomDocument();
73+
$dom = new \DOMDocument();
7474
$dom->loadXML('<container></containe 8000 r>');
7575

7676
$constraint = new SchemaAcceptsXml([$dom]);

tests/Unit/XmlSchemaTestCaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ class XmlSchemaTestCaseTest extends XmlSchemaTestCase
1717
{
1818
public function testAcceptsSingleDomsWithoutArray()
1919
{
20-
$dom = new \DomDocument();
20+
$dom = new \DOMDocument();
2121
$dom->loadXML('<container><config xmlns="http://cmf.symfony.com/schema/dic/foo" required="f"/></container>');
2222
$this->assertSchemaAcceptsXml($dom, __DIR__.'/../Fixtures/schema/schema1.xsd');
2323
}
2424

2525
public function testNegativeAssertion()
2626
{
27-
$dom = new \DomDocument();
27+
$dom = new \DOMDocument();
2828
$dom->loadXML('<container><config xmlns="http://cmf.symfony.com/schema/dic/foo" /></container>');
2929

3030
$this->assertSchemaRefusesXml($dom, __DIR__.'/../Fixtures/schema/schema1.xsd');

0 commit comments

Comments
 (0)
0