getCommandTester(); $output = $commandTester->getDisplay(); $this->assertStringContainsString('Username Email Roles Active Authenticator', $output); $this->assertStringContainsString('---------- ------- ------- -------- -------------', $output); } protected function getCommandTester(): CommandTester { $repository = $this->createMock(UserRepository::class); $repository->method('findAll')->willReturn([]); $kernel = self::bootKernel(); $application = new Application($kernel); $application->add(new ListUserCommand($repository)); $command = $application->find('kimai:user:list'); $commandTester = new CommandTester($command); $inputs = array_merge(['command' => $command->getName()], []); $commandTester->execute($inputs); return $commandTester; } }