|
6 | 6 |
|
7 | 7 | use Nyholm\Psr7\Factory\Psr17Factory;
|
8 | 8 | use PHPUnit\Framework\TestCase;
|
| 9 | +use function preg_replace; |
| 10 | +use function sprintf; |
9 | 11 | use stdClass;
|
10 |
| -use Yiisoft\DataResponse\DataResponseFactory; |
11 |
| -use Yiisoft\DataResponse\Formatter\XmlDataResponseFormatter; |
12 | 12 | use Yiisoft\DataResponse\DataResponse;
|
13 | 13 |
|
14 |
| -use function preg_replace; |
15 |
| -use function sprintf; |
| 14 | +use Yiisoft\DataResponse\DataResponseFactory; |
| 15 | +use Yiisoft\DataResponse\Formatter\XmlDataResponseFormatter; |
16 | 16 |
|
17 | 17 | class XmlDataResponseFormatterTest extends TestCase
|
18 | 18 | {
|
@@ -107,7 +107,7 @@ public function testArrayValues(): void
|
107 | 107 | {
|
108 | 108 | $dataResponse = $this->createResponse([
|
109 | 109 | [100 => [], '200' => null],
|
110 |
| - [1, 1.1, 'foo' => 'bar', true, false] |
| 110 | + [1, 1.1, 'foo' => 'bar', true, false], |
111 | 111 | ]);
|
112 | 112 | $result = (new XmlDataResponseFormatter())->format($dataResponse);
|
113 | 113 | $result->getBody()->rewind();
|
@@ -227,7 +227,7 @@ private function xml(string $data, string $version = '1.0', string $encoding = '
|
227 | 227 |
|
228 | 228 | private function createDummyObject(string $string, int $int, float $float, array $array): object
|
229 | 229 | {
|
230 |
| - return new class ($string, $int, $float, $array) { |
| 230 | + return new class($string, $int, $float, $array) { |
231 | 231 | private string $string;
|
232 | 232 | private int $int;
|
233 | 233 | private float $float;
|
|
0 commit comments