From 49d0f0c49901c291e26e4f02f52060bae25a11ed Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Wed, 13 Jun 2018 07:15:42 +0200 Subject: Fixed phpunit Test class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- build/integration/features/bootstrap/LDAPContext.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build/integration/features/bootstrap/LDAPContext.php') 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]); } /** -- cgit v1.2.3