/** * @param AbstractCommand $command */ private function assertOptions(AbstractCommand $command) { $expected = array_merge($this->getDefaultOptions(), $this->getExpectedOptions()); $actual = array_keys($command->getDefinition()->getOptions()); $this->assertEquals([], array_diff($expected, $actual), 'There are more options than expected'); $this->assertEquals([], array_diff($actual, $expected), 'There are less options than expected'); }