From 0b4ff1a9e36754311390f8f1319242e9c99d05e1 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 8 Mar 2016 14:52:54 +0100 Subject: [PATCH] Fix capabilities intergration tests Split the array element selection and the member selection. --- build/integration/features/bootstrap/CapabilitiesContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/integration/features/bootstrap/CapabilitiesContext.php b/build/integration/features/bootstrap/CapabilitiesContext.php index d30984f0db..83d5f5fd2f 100644 --- a/build/integration/features/bootstrap/CapabilitiesContext.php +++ b/build/integration/features/bootstrap/CapabilitiesContext.php @@ -39,9 +39,9 @@ class CapabilitiesContext implements Context, SnippetAcceptingContext { foreach ($formData->getHash() as $row) { $path_to_element = explode('@@@', $row['path_to_element']); - $answeredValue = $capabilitiesXML->$row['capability']; + $answeredValue = $capabilitiesXML->{$row['capability']}; for ($i = 0; $i < count($path_to_element); $i++){ - $answeredValue = $answeredValue->$path_to_element[$i]; + $answeredValue = $answeredValue->{$path_to_element[$i]}; } $answeredValue = (string)$answeredValue; PHPUnit_Framework_Assert::assertEquals(