/** * @covers ::__construct * @covers ::getFilename */ public function testConstruct() { $token = new Token('FILENAME'); $this->assertSame('FILENAME', $token->getFilename()); }
/** * @param InputInterface $input * @param OutputInterface $output */ protected function execute(InputInterface $input, OutputInterface $output) { $token = $input->getArgument('token'); $this->token->set($token); $output->writeln("Token saved to {$this->token->getFilename()}"); }