[MacPorts] #35291: pear-PHPUnit doesn't work with php 5.4.5

MacPorts noreply at macports.org
Thu Oct 18 13:27:02 PDT 2012


#35291: pear-PHPUnit doesn't work with php 5.4.5
---------------------------------+-----------------------
  Reporter:  bertrand.zuchuat@…  |      Owner:  pixilla@…
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.1.1
Resolution:                      |   Keywords:
      Port:  pear-PHPUnit        |
---------------------------------+-----------------------

Comment (by z.aliakseyeu@…):

 i have such problem and broke my mind out, but i have resolve it
 firstly i have checked
 {{{
 $ which phpunit
 /usr/bin/phpunit
 }}}

 then i have uninstall it, because it need to be in /opt/local/bin/phpunit
 so
 {{{
 $ sudo pear uninstall phpunit/PHPUnit
 $ which phpunit
 }}}
 if it still ouputs /usr/bin/phpunit, then execute
 {{{
 $ sudo rm /usr/bin/phpunit
 }}}
 then
 {{
 $ which pear
 }}
 if it outputs /usr/local/bin/pear or something which not equals
 /opt/local/bin/pear, then it wrong too
 {{
 $ sudo pear uninstall pear
 $ which pear
 }}
 if its still outputs old path, then, how you guess
 {{
 $ sudo rm /usr/local/bin/pear
 }}
 after that my which pear shows /opt/local/bin/pear (right path)
 then i just do such actions
 {{
 $ sudo pear channel-discover pear.phpunit.de
 $ sudo pear install pear.phpunit.de/PHPUnit
 }}
 then add to /opt/local/etc/php54/php.ini
 {{
 include_path =
 ".:/opt/local/lib/php54/pear/:/opt/local/lib/php54/pear/share/pear/"
 }}

 restarted apache and thats it)
 {{
 $ phpunit --version
 PHPUnit 3.7.8 by Sebastian Bergmann.
 }}

-- 
Ticket URL: <https://trac.macports.org/ticket/35291#comment:26>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list