public function testSetDefaultOptions() { $optionsResolver = $this->prophesize('Symfony\\Component\\OptionsResolver\\OptionsResolver'); $optionsResolver->setRequired(['start', 'end', 'step', 'vertical'])->shouldBeCalled(); $optionsResolver->setDefaults(['start' => 0, 'end' => 100, 'step' => 1, 'vertical' => false])->shouldBeCalled(); $this->type->configureOptions($optionsResolver->reveal()); }