@@ -42,21 +42,21 @@ public function dataHasMethod(): array
4242 public function testHasMethod (string $ className , bool $ result )
4343 {
4444 $ classReflection = $ this ->broker ->getClass ($ className );
45- $ this -> assertSame ($ result , $ this ->extension ->hasMethod ($ classReflection , 'href ' ));
45+ self :: assertSame ($ result , $ this ->extension ->hasMethod ($ classReflection , 'href ' ));
4646 }
4747
4848 public function testGetMethod ()
4949 {
5050 $ classReflection = $ this ->broker ->getClass (\Nette \Utils \Html::class);
5151 $ methodReflection = $ this ->extension ->getMethod ($ classReflection , 'href ' );
52- $ this -> assertSame ('href ' , $ methodReflection ->getName ());
53- $ this -> assertSame ($ classReflection , $ methodReflection ->getDeclaringClass ());
54- $ this -> assertFalse ($ methodReflection ->isStatic ());
55- $ this -> assertEmpty ($ methodReflection ->getParameters ());
56- $ this -> assertTrue ($ methodReflection ->isVariadic ());
57- $ this -> assertFalse ($ methodReflection ->isPrivate ());
58- $ this -> assertTrue ($ methodReflection ->isPublic ());
59- $ this -> assertSame (\Nette \Utils \Html::class, $ methodReflection ->getReturnType ()->describe ());
52+ self :: assertSame ('href ' , $ methodReflection ->getName ());
53+ self :: assertSame ($ classReflection , $ methodReflection ->getDeclaringClass ());
54+ self :: assertFalse ($ methodReflection ->isStatic ());
55+ self :: assertEmpty ($ methodReflection ->getParameters ());
56+ self :: assertTrue ($ methodReflection ->isVariadic ());
57+ self :: assertFalse ($ methodReflection ->isPrivate ());
58+ self :: assertTrue ($ methodReflection ->isPublic ());
59+ self :: assertSame (\Nette \Utils \Html::class, $ methodReflection ->getReturnType ()->describe ());
6060 }
6161
6262 /**
@@ -84,18 +84,18 @@ public function dataHasProperty(): array
8484 public function testHasProperty (string $ className , bool $ result )
8585 {
8686 $ classReflection = $ this ->broker ->getClass ($ className );
87- $ this -> assertSame ($ result , $ this ->extension ->hasProperty ($ classReflection , 'href ' ));
87+ self :: assertSame ($ result , $ this ->extension ->hasProperty ($ classReflection , 'href ' ));
8888 }
8989
9090 public function testGetProperty ()
9191 {
9292 $ classReflection = $ this ->broker ->getClass (\Nette \Utils \Html::class);
9393 $ propertyReflection = $ this ->extension ->getProperty ($ classReflection , 'href ' );
94- $ this -> assertSame ($ classReflection , $ propertyReflection ->getDeclaringClass ());
95- $ this -> assertFalse ($ propertyReflection ->isStatic ());
96- $ this -> assertFalse ($ propertyReflection ->isPrivate ());
97- $ this -> assertTrue ($ propertyReflection ->isPublic ());
98- $ this -> assertSame ('mixed ' , $ propertyReflection ->getType ()->describe ());
94+ self :: assertSame ($ classReflection , $ propertyReflection ->getDeclaringClass ());
95+ self :: assertFalse ($ propertyReflection ->isStatic ());
96+ self :: assertFalse ($ propertyReflection ->isPrivate ());
97+ self :: assertTrue ($ propertyReflection ->isPublic ());
98+ self :: assertSame ('mixed ' , $ propertyReflection ->getType ()->describe ());
9999 }
100100
101101}
0 commit comments