title: How to install phpunit under OSX 10.8.4 with MAMP 2.1.4 for Yii and Netbeans?
body: <p>I want use phpunit tests on my local maschine running OSX 10.8.4 and MAMP Pro with PHP 5.4.1. Further I want use it for Yii and my IDE Netbeans.</p>
  
  <p>I read a few tutorials like this approach via <a href="http://jeffreybarke.net/2010/08/how-to-install-phpunit-with-mamp/" rel="nofollow noreferrer">pear</a> or this one via <a href="https://stackoverflow.com/a/15850032/931358">composer</a>. I even tried to look like ppl do it on <a href="http://www.yiiframework.com/forum/index.php?/topic/14995-wamp-netbeans-phpunit-selenium-yii/" rel="nofollow noreferrer">windows</a> - without success.</p>
  
  <p>My approaches always resulted in errors like </p>
  
  <blockquote>
    <p>PHP Warning:  include(): Failed opening 'PHP_Invoker.php'</p>
    
    <p>PHP Warning: include(): Failed opening
    'PHPUnit_Extensions_Database_TestCase.php'</p>
    
    <p>PHP Warning:  include(): Failed opening
    'PHPUnit_Extensions_Story_TestCase.php'</p>
    
    <p>Failed opening required 'PHPUnit/Extensions/SeleniumTestCase.php'</p>
    
    <p>PHP Fatal error:  Class 'CTestCase' not found</p>
  </blockquote>
  
  <p>or phpunit wasn't found at all.</p>