1
1
#! /bin/sh
2
2
3
- # To install DbUnit, we have to install everything
4
- pear channel-discover pear.phpunit.de
5
- pear channel-discover pear.symfony-project.com
6
- pear update-channels
7
-
8
3
# remove any existing phpunit packages
9
4
pear uninstall -n pear.phpunit.de/PHPUnit
10
5
pear uninstall -n pear.phpunit.de/PHP_CodeCoverage
11
6
pear uninstall -n pear.phpunit.de/PHPUnit_MockObject
12
7
pear uninstall -n pear.phpunit.de/File_Iterator
13
8
pear uninstall -n pear.phpunit.de/Text_Template
14
9
pear uninstall -n pear.phpunit.de/PHP_Timer
15
- pear uninstall -n pear.symfony-project.com/YAML
10
+
11
+ # Install PHPUnit from git (only possibility for PHPUnit 3.6)
12
+ cd tests
13
+ mkdir phpunit && cd phpunit
14
+ git clone git://github.com/sebastianbergmann/phpunit.git
15
+ git clone git://github.com/sebastianbergmann/dbunit.git
16
+ git clone git://github.com/sebastianbergmann/php-file-iterator.git
17
+ git clone git://github.com/sebastianbergmann/php-text-template.git
18
+ git clone git://github.com/sebastianbergmann/php-code-coverage.git
19
+ git clone git://github.com/sebastianbergmann/php-token-stream.git
20
+ git clone git://github.com/sebastianbergmann/php-timer.git
21
+ git clone git://github.com/sebastianbergmann/phpunit-mock-objects.git
22
+ git clone git://github.com/sebastianbergmann/phpunit-selenium.git
23
+ git clone git://github.com/sebastianbergmann/phpunit-story.git
24
+ git clone git://github.com/sebastianbergmann/php-invoker.git
25
+
26
+ # last versions without anonymous functions
27
+ cd dbunit && git checkout 1.1 && cd ..
28
+ cd php-code-coverage && git checkout 1.1 && cd ..
29
+ cd php-file-iterator && git checkout 1.3.2 && cd ..
30
+ cd php-invoker && git checkout 1.1.1 && cd ..
31
+ cd php-text-template && git checkout 1.1.2 && cd ..
32
+ cd php-timer && git checkout 1.0.3 && cd ..
33
+ cd php-token-stream && git checkout 1.1.4 && cd ..
34
+ cd phpunit && git checkout 3.6.12 && cd ..
35
+ cd phpunit-mock-objects && git checkout 1.1 && cd ..
36
+ cd phpunit-selenium && git checkout 1.1 && cd ..
37
+ cd phpunit-story && git checkout 1.0.0 && cd ..
38
+
39
+ sed -i ' s/@package_version@/3.6.12/g' phpunit/PHPUnit/Runner/Version.php
40
+ cat phpunit/PHPUnit/Runner/Version.php
41
+
42
+ cd phpunit
43
+
44
+ php -d include_path=' .:../phpunit/:../dbunit/:../php-code-coverage/:../php-file-iterator/:../php-invoker/:../php-text-template/:../php-timer:../php-token-stream:../phpunit-mock-objects/:../phpunit-selenium/:../phpunit-story/:/usr/local/lib/php' ../phpunit/phpunit.php --version
45
+
46
+ cd ..
47
+ cd ..
16
48
17
49
# memcache 2.1.0 is the last version to support the php 5.2 branch
18
50
pecl download memcached-2.1.0
@@ -23,9 +55,3 @@ printf "\n" | phpize
23
55
24
56
printf " \n" | pecl uninstall memcache
25
57
printf " \n" | pecl install memcache
26
-
27
- # Install
28
- pear install -o pear.phpunit.de/PHPUnit
29
- pear install pear.phpunit.de/DbUnit
30
-
31
-
0 commit comments