Skip to content

Commit d58e6f9

Browse files
committed
fix helper
2 parents a2d1449 + 87cf8ee commit d58e6f9

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "stepapo/url-tester",
33
"type": "library",
4-
"description": "Tester for web applications, that use of Nette Application, Security and Forms components.",
5-
"keywords": ["nette", "tester", "application", "forms", "security"],
4+
"description": "Tester for Nette web applications.",
5+
"keywords": ["nette", "tester", "web", "url"],
66
"homepage": "https://github.com/stepapo/url-tester",
77
"license": "MIT",
88
"authors": [

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
URL Tester
2+
==========

src/Helper.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ public function prepareValues(array $values, bool $toString = false): array
6464
{
6565
$return = [];
6666
foreach ($values as $key => $value) {
67-
if (is_array($value)) {
68-
$return[$key] = $this->prepareValues($value, $toString);
69-
} else {
70-
$return[$key] = $this->prepareValue($value, $toString);
71-
}
67+
$return[$key] = is_array($value)
68+
? $this->prepareValues($value, $toString)
69+
: $this->prepareValue($value, $toString);
7270
}
7371
return $return;
7472
}

src/Tester/TestCase.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Stepapo\UrlTester\Helper;
88
use Stepapo\UrlTester\Config\TestConfig;
99
use Stepapo\UrlTester\UrlTester;
10-
use Tester\AssertException;
1110

1211

1312
abstract class TestCase extends \Tester\TestCase
@@ -100,14 +99,6 @@ protected function request(RequestConfig $config)
10099
}
101100
}
102101
}
103-
public function runTest(string $method, array $args = null): void
104-
{
105-
try {
106-
parent::runTest($method, $args);
107-
} catch (AssertException $e) {
108-
throw $e->setMessage(sprintf('%s', $e->origMessage));
109-
}
110-
}
111102

112103

113104
protected function setUpRequest()

0 commit comments

Comments
 (0)