[wp-trac] [WordPress Trac] #25065: The unit tests assume that PHPUnit is installed via PEAR

WordPress Trac noreply at wordpress.org
Sun Aug 18 00:50:05 UTC 2013


#25065: The unit tests assume that PHPUnit is installed via PEAR
--------------------------+------------------------------
 Reporter:  scribu        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Unit Tests    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Description changed by scribu:

Old description:

> PHPUnit officially supports 3 installation methods:
>
> 1. via PEAR
> 2. via Phar file
> 3. via Composer
>
> Core apparently only supports the first one, which also happens to be the
> most cumbersome.
>
> Steps to reproduce:
>
> 1. Install PHPUnit via Phar:
>
> {{{
> wget http://pear.phpunit.de/get/phpunit.phar
> chmod +x phpunit.phar
> mv phpunit.phar /usr/local/bin/phpunit
> }}}
>
> 2. Try to run the WP test suite with it:
>
> {{{
> phpunit -c tests/phpunit.xml
> }}}
>
> Result:
>
> {{{
> PHP Fatal error:  require_once(): Failed opening required
> 'PHPUnit/Autoload.php'
> (include_path='.:/usr/local/Cellar/php55/5.5.1/lib/php') in
> /Users/User/svn/wp-develop/tests/includes/bootstrap.php on line 7
> }}}

New description:

 PHPUnit officially supports 3
 [http://phpunit.de/manual/current/en/installation.html installation
 methods]:

 1. via PEAR
 2. via Phar file
 3. via Composer

 Core apparently only supports the first one, which also happens to be the
 most cumbersome.

 Steps to reproduce:

 1. Install PHPUnit via Phar:

 {{{
 wget http://pear.phpunit.de/get/phpunit.phar
 chmod +x phpunit.phar
 mv phpunit.phar /usr/local/bin/phpunit
 }}}

 2. Try to run the WP test suite with it:

 {{{
 phpunit -c tests/phpunit.xml
 }}}

 Result:

 {{{
 PHP Fatal error:  require_once(): Failed opening required
 'PHPUnit/Autoload.php'
 (include_path='.:/usr/local/Cellar/php55/5.5.1/lib/php') in
 /Users/User/svn/wp-develop/tests/includes/bootstrap.php on line 7
 }}}

--

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25065#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list