Skip to content

Commit 1e45992

Browse files
committed
test: fix test, we still use php5
1 parent 5fd5d95 commit 1e45992

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

tests/HigherOrderMessageTest.php

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
use Ahc\Underscore\HigherOrderMessage;
1515
use PHPUnit\Framework\TestCase as TestCase;
1616

17+
class HOM
18+
{
19+
public $b = 'B';
20+
21+
public function a()
22+
{
23+
return 'A';
24+
}
25+
}
26+
1727
/**
1828
* Auto generated by `phint test`.
1929
*/
@@ -34,23 +44,12 @@ public function setUp()
3444
parent::setUp();
3545

3646
$this->hom1 = new HigherOrderMessage(
37-
underscore([
38-
['a' => 1, 'b' => 2],
39-
]),
47+
underscore([['a' => 1, 'b' => 2]]),
4048
'map'
4149
);
4250

4351
$this->hom2 = new HigherOrderMessage(
44-
underscore([
45-
new class {
46-
public $b = 'B';
47-
48-
public function a()
49-
{
50-
return 'A';
51-
}
52-
},
53-
]),
52+
underscore([new HOM]),
5453
'map'
5554
);
5655
}

0 commit comments

Comments
 (0)