Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / dbal / tests / README.markdown
1 # Running the Doctrine 2 Testsuite
2
3 ## Setting up a PHPUnit Configuration XML
4
5 ..
6
7 ## Testing Lock-Support
8
9 The Lock support in Doctrine 2 is tested using Gearman, which allows to run concurrent tasks in parallel.
10 Install Gearman with PHP as follows:
11
12 1. Go to http://www.gearman.org and download the latest Gearman Server
13 2. Compile it and then call ldconfig
14 3. Start it up "gearmand -vvvv"
15 4. Install pecl/gearman by calling "gearman-beta"
16
17 You can then go into tests/ and start up two workers:
18
19     php Doctrine/Tests/ORM/Functional/Locking/LockAgentWorker.php
20
21 Then run the locking test-suite:
22
23     phpunit --configuration <myconfig.xml> Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php
24
25 This can run considerable time, because it is using sleep() to test for the timing ranges of locks.