Skip to content

Commit 637b03c

Browse files
committed
Removed old CA configuration + fixed ActionTest
1 parent a505827 commit 637b03c

File tree

4 files changed

+5
-67
lines changed

4 files changed

+5
-67
lines changed

util/ActionTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ private function do(array $actions): string
115115
$params = $this->convertStdClass($params); // convert "stdClass::__set_state(array())" in "(object)[]"
116116
}
117117
$vars[':endpoint'] = $this->convertDotToArrow($key);
118-
$vars[':params'] = str_replace("\n","\n" . self::TAB14, $params);
118+
//$vars[':params'] = str_replace("\n","\n" . self::TAB14, $params);
119+
$vars[':params'] = $params;
119120
}
120121
}
121122
return YamlTests::render(self::TEMPLATE_ENDPOINT, $vars);
@@ -240,6 +241,9 @@ private function match(array $actions)
240241
$vars[':expected'] = $this->convertJavaRegexToPhp($vars[':expected']);
241242
// Add /sx preg modifier to ignore whitespace
242243
$vars[':expected'] .= "sx";
244+
if ($vars[':value'] === '$response') {
245+
$vars[':value'] = '$response->asString()';
246+
}
243247
return YamlTests::render(
244248
($this->phpUnitVersion > 8) ? (self::TEMPLATE_PHPUNIT9_MATCH_REGEX) : (self::TEMPLATE_MATCH_REGEX),
245249
$vars

util/certs/ca.crt

Lines changed: 0 additions & 20 deletions
This file was deleted.

util/certs/testnode.crt

Lines changed: 0 additions & 19 deletions
This file was deleted.

util/certs/testnode.key

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)