Hi all
I'm following php manual (professional php6, wrox press) and i try to testing PHP Unit with no success.. sob..
I've download the installation from this link:
https://github.com/sebastianbergmann/phpunit
My OS is Win Xp 32, so i've to try the manual installation as the official documentation recommended
http://www.phpunit.de/manual/3.5/en...ml#installation
(Chapter 3. Installing PHPUnit)
I try to follow the points but don't work.. try to testing a test class return this error:
PHPUnit_TestCase($name); } function setUp() { $this->objMyTestClass = new TestClass(); } function tearDown() { unset($this->objMyTestClass); } function testMyMethod() { $actualResult = $this->objMyTestClass->myMethod('parameter'); $expectedResult = 'expected result'; $this->assertTrue($actualResult == $expectedResult); } } ?>#!/usr/bin/env php
Warning: require_once(PHP/CodeCoverage/Filter.php) [function.require-once]: failed to open stream: No such file or directory in C:\PHP\PEAR\PHPUnit\phpunit.php on line 38
Fatal error: require_once() [function.require]: Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.;C:\PHP\PEAR') in C:\PHP\PEAR\PHPUnit\phpunit.php on line 38
Why he try to search Filter.php in that directory? and for what reason?