em = new EntityManager([ 'driver' => 'sqlite', 'user' => null, 'password' => null, 'memory' => true, ]); } protected function tearDown(): void { $this->em->getConnection()->close(); } protected function execute(): void { $platform = $this->em->createDatabasePlatform(); $platform->createTable('user', [ new PrimaryKeyColumn('id'), new StringColumn('firstname'), new StringColumn('lastname'), new StringColumn('email'), new StringColumn('password'), new BoolColumn('is_active'), ]); $platform->createTable('post', [ new PrimaryKeyColumn('id'), new JoinColumn('user_id', 'id', UserTest::class), new StringColumn('title'), new StringColumn('content'), ]); $runner = new CommandRunner([ new ShowTablesCommand($this->em) ]); $code = $runner->run(new CommandParser(['', 'paper:show:tables', '--columns']), new Output(function ($message) use(&$countMessages) { })); $this->assertEquals(0, $code); } }