PHP5.3.5+PHPUnit3.5.11

Windowsにインストールしたのでメモ。
更新されるファイルがどれか知りたかっただけです。


D:\PHP5>pear channel-discover pear.phpunit.de
D:\PHP5>pear install phpunit/PHPUnit
Unknown remote channel: pear.symfony-project.com
Unknown remote channel: pear.symfony-project.com
Unknown remote channel: components.ez.no
Did not download optional dependencies: channel://components.ez.no/ConsoleTools, use --alldeps to download automatically
Unknown remote channel: components.ez.no
phpunit/PHPUnit requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2)
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/DbUnit requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/DbUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2)
phpunit/File_Iterator requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHP_CodeCoverage requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHP_CodeCoverage requires package "phpunit/File_Iterator" (version >= 1.2.2)
phpunit/PHP_CodeCoverage can optionally use package "channel://components.ez.no/ConsoleTools" (version >= 1.6)
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)
phpunit/PHPUnit_MockObject requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHPUnit_Selenium requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHP_TokenStream requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6)
downloading Text_Template-1.1.0.tgz ...
Starting to download Text_Template-1.1.0.tgz (2,783 bytes)
....done: 2,783 bytes
downloading PHP_Timer-1.0.0.tgz ...
Starting to download PHP_Timer-1.0.0.tgz (2,536 bytes)
...done: 2,536 bytes
downloading XML_RPC2-1.0.6.tgz ...
Starting to download XML_RPC2-1.0.6.tgz (63,747 bytes)
...done: 63,747 bytes
downloading Cache_Lite-1.7.8.tgz ...
Starting to download Cache_Lite-1.7.8.tgz (30,061 bytes)
...done: 30,061 bytes
install ok: channel://pear.phpunit.de/Text_Template-1.1.0
install ok: channel://pear.phpunit.de/PHP_Timer-1.0.0
install ok: channel://pear.php.net/Cache_Lite-1.7.8
install ok: channel://pear.php.net/XML_RPC2-1.0.6
う、古いのか。
とりあえず Auto-discover new Channels が false なので、

D:\PHP5>pear config-set auto_discover true
config-set succeeded

ん?ちゃんとセットされたのか?

D:\PHP5>pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels auto_discover
Default Channel default_channel pear.php.net
されてないじゃん。

D:\PHP5>pear config-set auto_discover 1
config-set succeeded

D:\PHP5>pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels auto_discover 1
Default Channel default_channel pear.php.net

な、なぜ1。
まぁ、置いとこうw

D:\PHP5>pear install phpunit/PHPUnit
Attempting to discover channel "pear.symfony-project.com"...
downloading channel.xml ...
Starting to download channel.xml (803 bytes)
....done: 803 bytes
Auto-discovered channel "pear.symfony-project.com", alias "symfony", adding to registry
Attempting to discover channel "components.ez.no"...
downloading channel.xml ...
Starting to download channel.xml (591 bytes)
...done: 591 bytes
Auto-discovered channel "components.ez.no", alias "ezc", adding to registry
Did not download optional dependencies: channel://components.ez.no/ConsoleTools, use --alldeps to download automatically
phpunit/PHPUnit requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/DbUnit requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/File_Iterator requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHP_CodeCoverage requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHP_CodeCoverage requires package "phpunit/File_Iterator" (version >= 1.2.2)
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)
phpunit/PHPUnit_MockObject requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHPUnit_Selenium requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
phpunit/PHP_TokenStream requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
downloading YAML-1.0.4.tgz ...
Starting to download YAML-1.0.4.tgz (9,919 bytes)
...done: 9,919 bytes
downloading ConsoleTools-1.6.1.tgz ...
Starting to download ConsoleTools-1.6.1.tgz (869,994 bytes)
...done: 869,994 bytes
downloading Base-1.8.tgz ...
Starting to download Base-1.8.tgz (236,357 bytes)
...done: 236,357 bytes
install ok: channel://pear.symfony-project.com/YAML-1.0.4
install ok: channel://components.ez.no/Base-1.8
install ok: channel://components.ez.no/ConsoleTools-1.6.1
あれ、pear のアップグレードも明示的にする必要があるのか。
ま、考えて見ればそうだ。

D:\PHP5>pear upgrade pear
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
pear/Console_Getopt requires PEAR Installer (version >= 1.9.1), installed version is 1.9.0
downloading PEAR-1.9.1.tgz ...
Starting to download PEAR-1.9.1.tgz (293,587 bytes)
.............................................................done: 293,587 bytes
downloading Archive_Tar-1.3.7.tgz ...
Starting to download Archive_Tar-1.3.7.tgz (17,610 bytes)
...done: 17,610 bytes
downloading Structures_Graph-1.0.4.tgz ...
Starting to download Structures_Graph-1.0.4.tgz (30,318 bytes)
...done: 30,318 bytes
upgrade ok: channel://pear.php.net/Archive_Tar-1.3.7
upgrade ok: channel://pear.php.net/Structures_Graph-1.0.4
upgrade ok: channel://pear.php.net/PEAR-1.9.1
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"
pear も新しくなったので改めて、

D:\PHP5>pear install phpunit/PHPUnit
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)
downloading PHPUnit-3.5.11.tgz ...
Starting to download PHPUnit-3.5.11.tgz (117,869 bytes)
..........................done: 117,869 bytes
downloading DbUnit-1.0.1.tgz ...
Starting to download DbUnit-1.0.1.tgz (39,055 bytes)
...done: 39,055 bytes
downloading File_Iterator-1.2.3.tgz ...
Starting to download File_Iterator-1.2.3.tgz (3,406 bytes)
...done: 3,406 bytes
downloading PHP_CodeCoverage-1.0.4.tgz ...
Starting to download PHP_CodeCoverage-1.0.4.tgz (115,029 bytes)
...done: 115,029 bytes
downloading PHPUnit_MockObject-1.0.8.tgz ...
Starting to download PHPUnit_MockObject-1.0.8.tgz (18,199 bytes)
...done: 18,199 bytes
downloading PHPUnit_Selenium-1.0.2.tgz ...
Starting to download PHPUnit_Selenium-1.0.2.tgz (16,412 bytes)
...done: 16,412 bytes
downloading PHP_TokenStream-1.0.1.tgz ...
Starting to download PHP_TokenStream-1.0.1.tgz (7,250 bytes)
...done: 7,250 bytes
install ok: channel://pear.phpunit.de/DbUnit-1.0.1
install ok: channel://pear.phpunit.de/File_Iterator-1.2.3
install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.0.8
install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.0.2
install ok: channel://pear.phpunit.de/PHP_TokenStream-1.0.1
install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.0.4
install ok: channel://pear.phpunit.de/PHPUnit-3.5.11
おわり。

結局、インストールによって以下のファイルが新しくなることがわかっった。

Installed packages, channel pear.php.net: PHPUnit
=========================================
Package Version State
Archive_Tar 1.3.3 stable 1.3.7
Console_Getopt 1.2.3 stable
HTTP 1.4.1 stable
HTTP_Client 1.2.1 stable
HTTP_OAuth 0.1.18 alpha
HTTP_Request 1.4.4 stable
HTTP_Request2 0.5.2 alpha
Log 1.11.4 stable
Mail 1.1.14 stable
Mail_Mime 1.5.2 stable
Mail_mimeDecode 1.5.0 stable
Net_SMTP 1.3.3 stable
Net_Socket 1.0.9 stable
Net_URL 1.0.15 stable
Net_URL2 0.3.1 beta
PEAR 1.8.1 stable 1.9.1
PhpDocumentor 1.4.2 stable
Structures_Graph 1.0.2 stable 1.0.4
XML_Beautifier 1.2.0 stable
XML_Parser 1.3.2 stable
XML_Util 1.2.1 stable
YAML 1.0.4
ConsoleTools 1.6.1
Base 1.8
PHPUnit 3.5.11
DbUnit 1.0.1
File_Iterator 1.2.3
PHP_CodeCoverage 1.0.4
PHPUnit_MockObject 1.0.8
PHPUnit_Selenium 1.0.2
PHP_TokenStream 1.0.1
Text_Template 1.1.0
PHP_Timer 1.0.0
XML_RPC2 1.0.6
Cache_Lite 1.7.8
PEARは仕方ないとして、Archive_Tar、Structures_Graph って何だ?

Archive_Tar は 1.3.7 の PEAR のコンパチ性以外はバグフィックスなので、ほぼ問題ないといえます。

1.3.7
  • PEAR compatibility update

  • 1.3.6
  • Fix Bug #16963: extractList can't extract zipped files from big tar [mrook]

  • Implement Feature #4013: Ignoring files and directories on creating an archive. [mrook]

  • 1.3.5
  • Fix Bug #16958: Update 'compatible' tag in package.xml [mrook]

  • 1.3.4
  • Fix Bug #11871: wrong result of ::listContent() if filename begins or ends with space [mrook]

  • Fix Bug #12462: invalid tar magic [mrook]

  • Fix Bug #13918: Long filenames may get up to 511 0x00 bytes appended on read [mrook]

  • Fix Bug #16202: Bogus modification times [mrook]

  • Implement Feature #16212: Die is not exception [mrook]

  • 1.3.3
  • fix Bug #9921 compression with bzip2 fails [cellog]

  • fix Bug #11594 _readLongHeader leaves 0 bytes in filename [jamessas]

  • fix Bug #11769 Incorrect symlink handing [fajar99]

  • Structures_Graph はバグフィックスのみですが、package.xml (配布ファイルに含まれる物?)が更新されるようです。


    1.0.4
    Bugfix Release:
  • Bug #17108 BasicGraph::test_directed_degree fails on PHP 5 [clockwerx]

  • 1.0.3
    Bugfix Release:
    Version 1.0.3 is functionally equivalent to 1.0.2 but with an updated package.xml file.
  • Correct invalid md5 sum preventing installation with pyrus [saltybeagle]

  • Add compatible tag for PEAR 1.5.0RC3-1.9.0 [saltybeagle]

  • Update package.xml

  • PEAR の変更が一番大きいように思えますが、PEAR 自身としてはパッケージの管理をやっているだけなので、問題はないかと思います。


    1.9.1
  • svntag improvements, tag package files passed into the command and better directory checks [dufuz]

  • rely on Structures_Graph minimum version instead of recommended version [saltybeagle]

  • Fix Bug #12613: running go-pear.phar from C:\ fails [dufuz]

  • Fix Bug #14841: Installing pear into directory with space fails [dufuz]

  • Fix Bug #16644: pear.bat returns syntax error when parenthesis are in install path. [dufuz] [patch by bwaters (Bryan Waters)]

  • Fix Bug #16767: Use of Depreciated HTML Attributes in the Exception class [dufuz] [patch by fuhrysteve (Stephen J. Fuhry)]

  • Fix Bug #16864: "pear list-upgrades -i" issues E_WARNINGS [dufuz] [patch by rquadling (Richard Quadling)]

  • Fix Bug #17220: command `pear help` outputs to stderr instead of stdout [dufuz]

  • Fix Bug #17234: channel-discover adds port to HTTP Host header [dufuz]

  • Fix Bug #17292: Code Coverage in PEAR_RunTest does not work with namespaces [sebastian]

  • Fix Bug #17359: loadExtension() fails over missing dl() when used in multithread env [dufuz]

  • Fix Bug #17378: pear info $package fails if directory with that name exists [dufuz]

  • 1.9.0
  • Fix Bug #16547: The phar for PEAR installer uses ereg() which is deprecated [dufuz]

  • 1.9.0RC4
  • Fixed a problem where the original channel could not be set as a preferred_mirror again [dufuz]

  • Make sure channel aliases can't be made to start with - [dufuz]

  • Output issues with pear search [dufuz]

  • Fixed couple of stray notices [dufuz]

  • 1.9.0RC3
  • Improved svntag support to handle packages like PEAR it self [dufuz]

  • 1.9.0RC2
  • REST 1.4 file was occasionally being included but REST 1.4 is not intended for this release cycle [dufuz]

  • 1.9.0RC1
  • Implement Request #16213: add alias to list-channels output [dufuz]

  • Implement Request #16378: pear svntag [dufuz]

  • Implement Request #16386: PEAR_Config::remove() does not support specifying a channel [timj]

  • Implement Request #16396: package-dependencies should allow package names [dufuz]

  • Fix Bug #11181: pear requests channel.xml from main server instead from mirror [dufuz]

  • Fix Bug #14493: pear install --offline doesn't print out errors [dufuz]

  • Fix Bug #11348: pear package-dependencies isn't well explained [dufuz]

  • Fix Bug #16108: PEAR_PackageFile_Generator_v2 PHP4 parse error when running upgrade-all [dufuz]

  • Fix Bug #16113: Installing certain packages fails due incorrect encoding handling [dufuz]

  • Fix Bug #16122: PEAR RunTest failed to run as expected [dufuz]

  • Fix Bug #16366: compiling 5.2.10 leads to non-functioning pear [dufuz]

  • Fix Bug #16387: channel-logout does not support logging out from a non-default channel [timj]

  • Fix Bug #16444: Setting preferred mirror fails [dufuz]

  • Fix the shutdown functions where a index might not exist and thus raise a notice [derick]

  • 本物サーバで、以下を実行。


    # pear channel-discover pear.phpunit.de
    Adding Channel "pear.phpunit.de" succeeded
    Discovery of channel "pear.phpunit.de" succeeded
    # pear config-set auto_discover 1
    # pear upgrade pear
    WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
    pear/Console_Getopt requires PEAR Installer (version >= 1.9.1), installed version is 1.8.1
    downloading PEAR-1.9.1.tgz ...
    Starting to download PEAR-1.9.1.tgz (293,587 bytes)
    .............................................................done: 293,587 bytes
    downloading Archive_Tar-1.3.7.tgz ...
    Starting to download Archive_Tar-1.3.7.tgz (17,610 bytes)
    ...done: 17,610 bytes
    downloading Structures_Graph-1.0.4.tgz ...
    Starting to download Structures_Graph-1.0.4.tgz (30,318 bytes)
    ...done: 30,318 bytes
    upgrade ok: channel://pear.php.net/Archive_Tar-1.3.7
    upgrade ok: channel://pear.php.net/Structures_Graph-1.0.4
    upgrade ok: channel://pear.php.net/PEAR-1.9.1
    PEAR: Optional feature webinstaller available (PEAR's web-based installer)
    PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
    PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
    PEAR: To install optional features use "pear install pear/PEAR#featurename"
    WARNINGにどきっとしたが、入った。

    # pear install -a phpunit/PHPUnit
    Attempting to discover channel "pear.symfony-project.com"...
    downloading channel.xml ...
    Starting to download channel.xml (803 bytes)
    ....done: 803 bytes
    Auto-discovered channel "pear.symfony-project.com", alias "symfony", adding to registry
    Attempting to discover channel "components.ez.no"...
    downloading channel.xml ...
    Starting to download channel.xml (591 bytes)
    ...done: 591 bytes
    Auto-discovered channel "components.ez.no", alias "ezc", adding to registry
    phpunit/PHPUnit can optionally use PHP extension "dbus"
    phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)
    downloading PHPUnit-3.5.11.tgz ...
    Starting to download PHPUnit-3.5.11.tgz (117,869 bytes)
    ...done: 117,869 bytes
    downloading DbUnit-1.0.1.tgz ...
    Starting to download DbUnit-1.0.1.tgz (39,055 bytes)
    ...done: 39,055 bytes
    downloading File_Iterator-1.2.3.tgz ...
    Starting to download File_Iterator-1.2.3.tgz (3,406 bytes)
    ...done: 3,406 bytes
    downloading Text_Template-1.1.0.tgz ...
    Starting to download Text_Template-1.1.0.tgz (2,783 bytes)
    ...done: 2,783 bytes
    downloading PHP_CodeCoverage-1.0.4.tgz ...
    Starting to download PHP_CodeCoverage-1.0.4.tgz (115,029 bytes)
    ...done: 115,029 bytes
    downloading PHP_Timer-1.0.0.tgz ...
    Starting to download PHP_Timer-1.0.0.tgz (2,536 bytes)
    ...done: 2,536 bytes
    downloading PHPUnit_MockObject-1.0.8.tgz ...
    Starting to download PHPUnit_MockObject-1.0.8.tgz (18,199 bytes)
    ...done: 18,199 bytes
    downloading PHPUnit_Selenium-1.0.2.tgz ...
    Starting to download PHPUnit_Selenium-1.0.2.tgz (16,412 bytes)
    ...done: 16,412 bytes
    downloading YAML-1.0.4.tgz ...
    Starting to download YAML-1.0.4.tgz (9,919 bytes)
    ...done: 9,919 bytes
    downloading XML_RPC2-1.0.6.tgz ...
    Starting to download XML_RPC2-1.0.6.tgz (63,747 bytes)
    ...done: 63,747 bytes
    downloading PHP_TokenStream-1.0.1.tgz ...
    Starting to download PHP_TokenStream-1.0.1.tgz (7,250 bytes)
    ...done: 7,250 bytes
    downloading ConsoleTools-1.6.1.tgz ...
    Starting to download ConsoleTools-1.6.1.tgz (869,994 bytes)
    ...done: 869,994 bytes
    downloading Cache_Lite-1.7.8.tgz ...
    Starting to download Cache_Lite-1.7.8.tgz (30,061 bytes)
    ...done: 30,061 bytes
    downloading Base-1.8.tgz ...
    Starting to download Base-1.8.tgz (236,357 bytes)
    ...done: 236,357 bytes
    install ok: channel://pear.phpunit.de/File_Iterator-1.2.3
    install ok: channel://pear.phpunit.de/Text_Template-1.1.0
    install ok: channel://pear.phpunit.de/PHP_Timer-1.0.0
    install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.0.2
    install ok: channel://pear.symfony-project.com/YAML-1.0.4
    install ok: channel://pear.php.net/Cache_Lite-1.7.8
    install ok: channel://components.ez.no/Base-1.8
    install ok: channel://pear.phpunit.de/DbUnit-1.0.1
    install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.0.8
    install ok: channel://pear.php.net/XML_RPC2-1.0.6
    install ok: channel://components.ez.no/ConsoleTools-1.6.1
    install ok: channel://pear.phpunit.de/PHP_TokenStream-1.0.1
    install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.0.4
    install ok: channel://pear.phpunit.de/PHPUnit-3.5.11
    終わり。テストを楽しもう。