* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\Tests\Extension\Core\Type; use Symfony\Component\Form\Test\FormPerformanceTestCase; /** * @author Bernhard Schussek */ class ChoiceTypePerformanceTest extends FormPerformanceTestCase { /** * This test case is realistic in collection forms where each * row contains the same choice field. * * @group benchmark */ public function testSameChoiceFieldCreatedMultipleTimes() { $this->setMaxRunningTime(1); $choices = range(1, 300); for ($i = 0; $i < 100; ++$i) { $this->factory->create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', mt_rand(1, 400), array( 'choices' => $choices, )); } } } __halt_compiler();----SIGNATURE:----sZvvi9mcNcn/9B2/BVBjSmu+/4Idn83TIksQOWNfOm+8FlkM8mBw8Yz+P/5W60xfm4o7ep93Zw4OKLL46X5gEa8s3YwcA8Ps3uQptg5qs/edk1dbVP+t+K2zWrbjis0cEIJ1TDMTqTM4vQtOeTKPxI+aCrBMU2Zs3AkU5TUJ5KDwVydBJH2aSxITcW55BEe9dRk+vK+4mjSU+ccwtRtm9l9Esk+II9hL7YamOIstxBC88Bi2CVpbm29ykQGKiHDbAihPWWQMudlGt+tRLTe4/+YEwER14W3ELnwoXZwhCHKTmyxH0h3B6C4agNJVzioCmYeLjwye+wI7b8XrFDsJsrKUjHt42kpAQ9n13TxkdvQziE6haSbAYUFPI3ixuW3gnGPj7hMw3Rr4uC1qC1z5jaHvyUUo+hCYlFxRQQ6atW/AZirMcUuPcFcGsQSH+fqNqsy3/CUbP5/5JDZdVqyf3Hskoerz3mNE75cuFRp472DNS0904bio7uEkZNjrLPSi3dqNjcGwrGvU7Xhlx1DMm03JXAjMwH3k/19qC4fNYM/0faeFpP1EibBWv3xgCrTLfxDmuHDSQoFzMVKLoqCMY07t0h08sZYr0ramFRNFtJAOPTs6dw0cVNUBRYOl0nh8pIgL5xGNq2DzQNtujDT9VTlCOpNHADTf1mBob1LLJQ4=----ATTACHMENT:----NzYxODEwNTIyMjgxOTM5IDk4MDA2NzI2ODY0NzA5NjEgMTk1OTY1NjIyOTI5NTE2NQ==