protected function initialize(InputInterface $input, OutputInterface $output)
 {
     parent::initialize($input, $output);
     // Resolve the coding standard.
     $resolver = new StandardResolver();
     $this->standard = $input->getOption('standard');
     if ($resolver->hasStandard($this->standard)) {
         $this->standard = $resolver->resolve($this->standard);
     }
     $this->finder = Finder::create()->notPath('yui/build')->notPath('amd/build')->name('*.php')->name('*.js')->notName('*-min.js');
 }
 /**
  * @expectedException \RuntimeException
  */
 public function testResolveNotFound()
 {
     $resolver = new StandardResolver(['moodle' => [__DIR__ . '/bad/location']]);
     $resolver->resolve('moodle');
 }