once(); } $invocation = $object->expects($times) ->method($method); if (is_null($arguments)) { $invocation->withAnyParameters(); } else { call_user_func_array([$invocation, 'with'], $arguments); } if (!is_null($return)) { $invocation->willReturn($return); } } /** * Called before each test run */ protected function setUp(): void { $this->app = new Application(__DIR__ . '/../../'); } }