@@ -16,12 +16,6 @@ protected function setUp(): void
16
16
$ this ->extension = new MoneyMethodsReflectionExtension ();
17
17
}
18
18
19
- public function testHasMethod (): void
20
- {
21
- $ classReflection = $ this ->broker ->getClass ('Money\Money ' );
22
- $ this ->assertTrue ($ this ->extension ->hasMethod ($ classReflection , 'getUnits ' ));
23
- }
24
-
25
19
public function testHasStaticMethod (): void
26
20
{
27
21
$ classReflection = $ this ->broker ->getClass ('Money\Money ' );
@@ -34,38 +28,6 @@ public function testInvalidMethod(): void
34
28
$ this ->assertFalse ($ this ->extension ->hasMethod ($ classReflection , 'ZZZ ' ));
35
29
}
36
30
37
- public function testHasPrivateMethod (): void
38
- {
39
- $ classReflection = $ this ->broker ->getClass ('Money\Money ' );
40
- $ this ->assertTrue ($ this ->extension ->hasMethod ($ classReflection , 'assertSameCurrency ' ));
41
- }
42
-
43
- public function testGetPublicMethod (): void
44
- {
45
- $ classReflection = $ this ->broker ->getClass ('Money\Money ' );
46
- $ methodReflection = $ this ->extension ->getMethod ($ classReflection , 'getUnits ' );
47
-
48
- $ this ->assertEquals ('getUnits ' , $ methodReflection ->getName ());
49
- $ this ->assertEquals ($ classReflection , $ methodReflection ->getDeclaringClass ());
50
- $ this ->assertFalse ($ methodReflection ->isStatic ());
51
- $ this ->assertFalse ($ methodReflection ->isVariadic ());
52
- $ this ->assertFalse ($ methodReflection ->isPrivate ());
53
- $ this ->assertTrue ($ methodReflection ->isPublic ());
54
- }
55
-
56
- public function testGetPrivateMethod (): void
57
- {
58
- $ classReflection = $ this ->broker ->getClass ('Money\Money ' );
59
- $ methodReflection = $ this ->extension ->getMethod ($ classReflection , 'assertSameCurrency ' );
60
-
61
- $ this ->assertEquals ('assertSameCurrency ' , $ methodReflection ->getName ());
62
- $ this ->assertEquals ($ classReflection , $ methodReflection ->getDeclaringClass ());
63
- $ this ->assertFalse ($ methodReflection ->isStatic ());
64
- $ this ->assertFalse ($ methodReflection ->isVariadic ());
65
- $ this ->assertTrue ($ methodReflection ->isPrivate ());
66
- $ this ->assertFalse ($ methodReflection ->isPublic ());
67
- }
68
-
69
31
public function testGetStaticMethod (): void
70
32
{
71
33
$ classReflection = $ this ->broker ->getClass ('Money\Money ' );
0 commit comments