Skip to content

Commit a744334

Browse files
author
anahan
committed
tests refactoring
1 parent 072f815 commit a744334

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

test/OVal.php

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

test/functions.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
namespace CodeTool\Jaeger\Tests\MongoDb;
44

5-
function ov(...$kv)
5+
function ov(...$kv): object
66
{
7-
return new OVal(...$kv);
7+
$result = new \stdClass();
8+
9+
for ($i = 0; $i <= (int)(\count($kv) / 2) - 1; $i++) {
10+
$result->{current($kv)} = next($kv);
11+
next($kv);
12+
}
13+
14+
return $result;
815
}

0 commit comments

Comments
 (0)