File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 8
8
- $HOME/ocular.phar
9
9
10
10
env :
11
- - PREFER_LOWEST=no
12
11
- PREFER_LOWEST=yes
13
12
14
13
matrix :
Original file line number Diff line number Diff line change @@ -34,18 +34,11 @@ public function testHasMethodSuccess()
34
34
{
35
35
$ classReflection = $ this ->broker ->getClass (StrEnum::class);
36
36
37
- foreach (StrEnum::getNames ( ) as $ name ) {
37
+ foreach (array_keys ( StrEnum::getConstants () ) as $ name ) {
38
38
$ this ->assertTrue ($ this ->reflectionExtension ->hasMethod ($ classReflection , $ name ));
39
39
}
40
40
}
41
41
42
- public function testHasMethodPrivateProtectedNotFound ()
43
- {
44
- $ classReflection = $ this ->broker ->getClass (StrEnum::class);
45
- $ this ->assertFalse ($ this ->reflectionExtension ->hasMethod ($ classReflection , 'PRIVATE_STR ' ));
46
- $ this ->assertFalse ($ this ->reflectionExtension ->hasMethod ($ classReflection , 'PROTECTED_STR ' ));
47
- }
48
-
49
42
public function testHasMethodUnknownNotFound ()
50
43
{
51
44
$ classReflection = $ this ->broker ->getClass (StrEnum::class);
@@ -62,7 +55,7 @@ public function testGetMethodSuccess()
62
55
{
63
56
$ classReflection = $ this ->broker ->getClass (StrEnum::class);
64
57
65
- foreach (StrEnum::getNames ( ) as $ name ) {
58
+ foreach (array_keys ( StrEnum::getConstants () ) as $ name ) {
66
59
$ methodReflection = $ this ->reflectionExtension ->getMethod ($ classReflection , $ name );
67
60
68
61
$ this ->assertInstanceOf (EnumMethodReflection::class, $ methodReflection );
You can’t perform that action at this time.
0 commit comments