Пример #1
0
 public function testCommandHasCacheFileOption()
 {
     $command = new FixCommand();
     $definition = $command->getDefinition();
     $this->assertTrue($definition->hasOption('cache-file'));
     $option = $definition->getOption('cache-file');
     $this->assertNull($option->getShortcut());
     $this->assertTrue($option->isValueRequired());
     $this->assertSame('The path to the cache file', $option->getDescription());
     $this->assertNull($option->getDefault());
 }