@@ -25,7 +25,7 @@ public function should_mock_objects(): void
2525 /** @var ClassFixture $mock */
2626 $ mock = $ this ->easyMock (ClassFixture::class);
2727
28- $ this -> assertNull ($ mock ->foo ());
28+ self :: assertNull ($ mock ->foo ());
2929 }
3030
3131 /**
@@ -36,7 +36,7 @@ public function should_skip_the_constructor(): void
3636 /** @var ClassWithConstructor $mock */
3737 $ mock = $ this ->easyMock (ClassWithConstructor::class);
3838
39- $ this -> assertFalse ($ mock ->constructorCalled );
39+ self :: assertFalse ($ mock ->constructorCalled );
4040 }
4141
4242 /**
@@ -47,7 +47,7 @@ public function should_mock_interfaces(): void
4747 /** @var InterfaceFixture $mock */
4848 $ mock = $ this ->easyMock (InterfaceFixture::class);
4949
50- $ this -> assertNull ($ mock ->foo ());
50+ self :: assertNull ($ mock ->foo ());
5151 }
5252
5353 /**
@@ -58,7 +58,7 @@ public function not_mocked_methods_should_return_null(): void
5858 /** @var ClassFixture $mock */
5959 $ mock = $ this ->easyMock (ClassFixture::class);
6060
61- $ this -> assertNull ($ mock ->foo ());
61+ self :: assertNull ($ mock ->foo ());
6262 }
6363
6464 /**
@@ -71,7 +71,7 @@ public function should_mock_existing_method_with_a_value(): void
7171 'foo ' => 'bar ' ,
7272 ));
7373
74- $ this -> assertSame ('bar ' , $ mock ->foo ());
74+ self :: assertSame ('bar ' , $ mock ->foo ());
7575 }
7676
7777 /**
@@ -86,7 +86,7 @@ public function should_mock_existing_method_with_a_callback(): void
8686 },
8787 ));
8888
89- $ this -> assertSame ('bar ' , $ mock ->foo ());
89+ self :: assertSame ('bar ' , $ mock ->foo ());
9090 }
9191
9292 /**
@@ -116,7 +116,7 @@ public function should_mock_new_methods_on_existing_mock(): void
116116 'foo ' => 'bar ' ,
117117 ));
118118
119- $ this -> assertSame ('bar ' , $ mock ->foo ());
119+ self :: assertSame ('bar ' , $ mock ->foo ());
120120 }
121121
122122 /**
@@ -134,8 +134,8 @@ public function should_allow_to_spy_method_calls(): void
134134 $ property ->setAccessible (true );
135135 $ mockObjects = $ property ->getValue ($ this );
136136
137- $ this -> assertCount (1 , $ mockObjects );
138- $ this -> assertSame ($ mock , $ mockObjects [0 ]);
137+ self :: assertCount (1 , $ mockObjects );
138+ self :: assertSame ($ mock , $ mockObjects [0 ]);
139139
140140 // Cannot use @expectedException because PHPUnit has specific behavior for this
141141 try {
0 commit comments