Skip to content

Commit 8371dca

Browse files
committed
Use assertStringContainsString when needed
1 parent dddd42d commit 8371dca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/Loader/XmlFileLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public function testExtensions()
438438

439439
$e = $e->getPrevious();
440440
$this->assertInstanceOf('InvalidArgumentException', $e, '->load() throws an InvalidArgumentException if the configuration does not validate the XSD');
441-
$this->assertContains('The attribute \'bar\' is not allowed', $e->getMessage(), '->load() throws an InvalidArgumentException if the configuration does not validate the XSD');
441+
$this->assertStringContainsString('The attribute \'bar\' is not allowed', $e->getMessage(), '->load() throws an InvalidArgumentException if the configuration does not validate the XSD');
442442
}
443443

444444
// non-registered extension
@@ -478,7 +478,7 @@ public function testExtensionInPhar()
478478

479479
$e = $e->getPrevious();
480480
$this->assertInstanceOf('InvalidArgumentException', $e, '->load() throws an InvalidArgumentException if the configuration does not validate the XSD');
481-
$this->assertContains('The attribute \'bar\' is not allowed', $e->getMessage(), '->load() throws an InvalidArgumentException if the configuration does not validate the XSD');
481+
$this->assertStringContainsString('The attribute \'bar\' is not allowed', $e->getMessage(), '->load() throws an InvalidArgumentException if the configuration does not validate the XSD');
482482
}
483483
}
484484

Tests/ParameterBag/EnvPlaceholderParameterBagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testMergeWillNotDuplicateIdenticalParameters()
4141

4242
$this->assertCount(1, $placeholderForVariable);
4343
$this->assertIsString($placeholder);
44-
$this->assertContains($envVariableName, $placeholder);
44+
$this->assertStringContainsString($envVariableName, $placeholder);
4545
}
4646

4747
public function testMergeWhereFirstBagIsEmptyWillWork()
@@ -64,7 +64,7 @@ public function testMergeWhereFirstBagIsEmptyWillWork()
6464

6565
$this->assertCount(1, $placeholderForVariable);
6666
$this->assertIsString($placeholder);
67-
$this->assertContains($envVariableName, $placeholder);
67+
$this->assertStringContainsString($envVariableName, $placeholder);
6868
}
6969

7070
public function testMergeWherePlaceholderOnlyExistsInSecond()

0 commit comments

Comments
 (0)