I have install PHPUnit using pear but when I try to make a test I get the following error on including the phpunit framework.
this is the php test script
<?php
require_once ('PHPUnit/Framework');
class Mytest extends PHPUnit_Framework_TestCase
{
private $o;
protected function setUp()
{
$this->o=new Myclass();
}
public function testId()
{
$this->assertEquals(null,$this->o->getID());
}
}
class Myclass{
private $_id;
public function getID()
{
return $this->_id;
}
}
End the erro is code is:
require_once(C:\wamp\bin\php\php5.3.8\pear\PHPUnit\Framework): failed to open stream: Permission denied
I tried a lot of things but couldn't get no result!!