public function configure(array $configuration = null)
{
if (null === $configuration) {
$this->configuration = self::$defaultConfiguration;
return;
}
foreach ($configuration as $method) {
if (!array_key_exists($method, $this->assertionFixers)) {
throw new InvalidFixerConfigurationException($this->getName(), sprintf('Configured method "%s" cannot be fixed by this fixer.', $method));
}
}
$this->configuration = $configuration;
}