Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af1ea1a

Browse files
authored
Merge pull request doctrine#5623 from Jean85/patch-1
[DOCUMENTATION] Update tests README
2 parents 379acd9 + 1e97cf2 commit af1ea1a

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

tests/README.markdown

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
# Running the Doctrine 2 Testsuite
22

3-
## Setting up a PHPUnit Configuration XML
3+
To execute the Doctrine2 testsuite, you just need to execute this simple steps:
44

5-
..
5+
* Clone the project from GitHub
6+
* Enter the Doctrine2 folder
7+
* Install the dependencies
8+
* Execute the tests
9+
10+
All this is (normally) done with:
11+
12+
git clone [email protected]:doctrine/doctrine2.git
13+
cd doctrine2
14+
composer install
15+
./vendor/bin/phpunit
16+
17+
## Pre-requisites
18+
Doctrine2 works on many database vendors; the tests can detect the presence of installed vendors, but you need at least one of those; the easier to install is SQLite.
19+
20+
If you're using Debian, or a Debian-derivate Linux distribution (like Ubuntu), you can install SQLite with:
21+
22+
sudo apt-get install sqlite
623

724
## Testing Lock-Support
825

@@ -14,12 +31,12 @@ Install Gearman with PHP as follows:
1431
3. Start it up "gearmand -vvvv"
1532
4. Install pecl/gearman by calling "gearman-beta"
1633

17-
You can then go into tests/ and start up two workers:
34+
You can then go into `tests/` and start up two workers:
1835

1936
php Doctrine/Tests/ORM/Functional/Locking/LockAgentWorker.php
2037

2138
Then run the locking test-suite:
2239

2340
phpunit --configuration <myconfig.xml> Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php
2441

25-
This can run considerable time, because it is using sleep() to test for the timing ranges of locks.
42+
This can run considerable time, because it is using sleep() to test for the timing ranges of locks.

0 commit comments

Comments
 (0)