From 77ce354f183674091dab9dca4363ba0b78bcfa0c Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Thu, 26 May 2016 22:28:54 +0200 Subject: [PATCH] Removing old `UnitOfWorkPerformanceTest` --- .../Performance/UnitOfWorkPerformanceTest.php | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 tests/Doctrine/Tests/ORM/Performance/UnitOfWorkPerformanceTest.php diff --git a/tests/Doctrine/Tests/ORM/Performance/UnitOfWorkPerformanceTest.php b/tests/Doctrine/Tests/ORM/Performance/UnitOfWorkPerformanceTest.php deleted file mode 100644 index 3d63eb4d8..000000000 --- a/tests/Doctrine/Tests/ORM/Performance/UnitOfWorkPerformanceTest.php +++ /dev/null @@ -1,50 +0,0 @@ -useModelSet('cms'); - parent::setUp(); - } - - public function testComputeChanges() - { - $n = 100; - - $users = []; - for ($i=1; $i<=$n; ++$i) { - $user = new CmsUser; - $user->status = 'user'; - $user->username = 'user' . $i; - $user->name = 'Mr.Smith-' . $i; - $this->_em->persist($user); - $users[] = $user; - } - $this->_em->flush(); - - - foreach ($users AS $user) { - $user->status = 'other'; - $user->username = $user->username . '++'; - $user->name = str_replace('Mr.', 'Mrs.', $user->name); - } - - $s = microtime(true); - $this->_em->flush(); - $e = microtime(true); - - echo ' Compute ChangeSet '.$n.' objects in ' . ($e - $s) . ' seconds' . PHP_EOL; - } -}