diff options
Diffstat (limited to 'build/integration/features/bootstrap/LDAPContext.php')
-rw-r--r-- | build/integration/features/bootstrap/LDAPContext.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build/integration/features/bootstrap/LDAPContext.php b/build/integration/features/bootstrap/LDAPContext.php index 3a9c59b52b4..e2b30011515 100644 --- a/build/integration/features/bootstrap/LDAPContext.php +++ b/build/integration/features/bootstrap/LDAPContext.php @@ -23,6 +23,7 @@ use Behat\Behat\Context\Context; use Behat\Gherkin\Node\TableNode; +use PHPUnit\Framework\Assert; class LDAPContext implements Context { use BasicStructure; @@ -36,7 +37,7 @@ class LDAPContext implements Context { */ public function theResponseShouldContainATag($arg1) { $configID = simplexml_load_string($this->response->getBody())->data[0]->$arg1; - PHPUnit_Framework_Assert::assertInstanceOf(SimpleXMLElement::class, $configID[0]); + Assert::assertInstanceOf(SimpleXMLElement::class, $configID[0]); } /** @@ -61,7 +62,7 @@ class LDAPContext implements Context { */ public function theResponseShouldContainATagWithValue($tagName, $expectedValue) { $data = simplexml_load_string($this->response->getBody())->data[0]->$tagName; - PHPUnit_Framework_Assert::assertEquals($expectedValue, $data[0]); + Assert::assertEquals($expectedValue, $data[0]); } /** |