@@ -30,7 +30,7 @@ protected function setUp(): void
3030 /**
3131 * @covers ::create
3232 */
33- public function testCreate ()
33+ public function testCreate () : void
3434 {
3535 $ this ->mockInjector ->create ("abc123 " , [1 => "hello " ])->willReturn ("cat " )->shouldBeCalledTimes (1 );
3636 $ i = new MockInjector ($ this ->mockContainer ->reveal (), $ this ->mockInjector ->reveal ());
@@ -40,7 +40,7 @@ public function testCreate()
4040 /**
4141 * @covers ::invoke
4242 */
43- public function testInvoke ()
43+ public function testInvoke () : void
4444 {
4545 $ obj = new \stdClass ();
4646 $ this ->mockInjector ->invoke ($ obj , "method1 " , [1 => "hello " ])->willReturn ("fish " )->shouldBeCalledTimes (1 );
@@ -51,7 +51,7 @@ public function testInvoke()
5151 /**
5252 * @covers ::checkPredictions
5353 */
54- public function testCheckPredictions ()
54+ public function testCheckPredictions () : void
5555 {
5656 $ this ->mockContainer ->checkPredictions ()->shouldBeCalledTimes (1 );
5757 $ i = new MockInjector ($ this ->mockContainer ->reveal (), $ this ->mockInjector ->reveal ());
@@ -61,7 +61,7 @@ public function testCheckPredictions()
6161 /**
6262 * @covers ::getAllMocks
6363 */
64- public function testGetAllMocks ()
64+ public function testGetAllMocks () : void
6565 {
6666 $ this ->mockContainer ->getAllMocks ()->willReturn ([1 , 2 , 6 ])->shouldBeCalledTimes (1 );
6767 $ i = new MockInjector ($ this ->mockContainer ->reveal (), $ this ->mockInjector ->reveal ());
@@ -71,7 +71,7 @@ public function testGetAllMocks()
7171 /**
7272 * @covers ::getMock
7373 */
74- public function testGetMock ()
74+ public function testGetMock () : void
7575 {
7676 $ dummy = new \stdClass ();
7777 $ this ->mockContainer ->getMock ("blah " )->willReturn ($ dummy )->shouldBeCalledTimes (1 );
@@ -84,7 +84,7 @@ public function testGetMock()
8484 * and will instantiate an object with an auto-mocked dependency.
8585 * @covers ::__construct
8686 */
87- public function testWithoutDependencies ()
87+ public function testWithoutDependencies () : void
8888 {
8989 $ i = new MockInjector ();
9090 /** @var DummyDependency $obj */
0 commit comments