createMock(originalClassName: InputInterface::class); $output = $this->createMock(originalClassName: OutputInterface::class); $userRepository = $this->createMock(originalClassName: UserRepository::class); $command = new CronRunCommand(userRepository: $userRepository); // Act $result = $command->execute(input: $input, output: $output); // Assert $this->assertSame(expected: Command::SUCCESS, actual: $result); } }