3 namespace Doctrine\Tests\ORM\Functional\Ticket;
5 use Doctrine\Common\Collections\ArrayCollection;
6 require_once __DIR__ . '/../../../TestInit.php';
11 class DDC1050Test extends \Doctrine\Tests\OrmFunctionalTestCase
13 public function setUp()
15 $this->markTestSkipped('performance skipped');
16 $this->useModelSet('cms');
20 public function testPerformance()
22 for ($i = 2; $i < 10000; ++$i) {
23 $user = new \Doctrine\Tests\Models\CMS\CmsUser();
24 $user->status = 'developer';
25 $user->username = 'jwage'+$i;
26 $user->name = 'Jonathan';
27 $this->_em->persist($user);
33 $users = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser')->findAll();
35 echo __FUNCTION__ . " - " . ($e - $s) . " seconds" . PHP_EOL;