We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd5d95 commit 1e45992Copy full SHA for 1e45992
tests/HigherOrderMessageTest.php
@@ -14,6 +14,16 @@
14
use Ahc\Underscore\HigherOrderMessage;
15
use PHPUnit\Framework\TestCase as TestCase;
16
17
+class HOM
18
+{
19
+ public $b = 'B';
20
+
21
+ public function a()
22
+ {
23
+ return 'A';
24
+ }
25
+}
26
27
/**
28
* Auto generated by `phint test`.
29
*/
@@ -34,23 +44,12 @@ public function setUp()
34
44
parent::setUp();
35
45
36
46
$this->hom1 = new HigherOrderMessage(
37
- underscore([
38
- ['a' => 1, 'b' => 2],
39
- ]),
47
+ underscore([['a' => 1, 'b' => 2]]),
40
48
'map'
41
49
);
42
50
43
51
$this->hom2 = new HigherOrderMessage(
- new class {
- public $b = 'B';
-
- public function a()
- {
- return 'A';
- }
52
- },
53
+ underscore([new HOM]),
54
55
56
}
0 commit comments