NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PHP Unit - "Class 'PHPUnit_Util_Printer' not found"


Joined: 22 May 2004
Posts: 76
Reply with quote
I am running the Phped 19 Trial. I get the following error message when I run a php unit test. Any way to resolve this?

ERROR:
PHP Fatal error: Class 'PHPUnit_Util_Printer' not found in C:\Users\jeffphilapy\AppData\Roaming\NuSphere\PhpED\unitTest\phpUnitListener.php on line 7

Fatal error: Class 'PHPUnit_Util_Printer' not found in C:\Users\jeffphilapy\AppData\Roaming\NuSphere\PhpED\unitTest\phpUnitListener.php on line 7

EDIT:
I am running PHPEd via Parallels on Mac
View user's profileFind all posts by jphilapySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7965
Reply with quote
What version of phpUnit are you using?
PhpUnit packages shipped with PhpED are known to work good and they have this class.
Newer versions, especially if they were released _after_ we released PhpED v19, may not be backward compatible and therefore may produce errors.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 22 May 2004
Posts: 76
Reply with quote
I am using the default phpunit that comes configured in phped 19.

C:\Users\webdev\AppData\Roaming\NuSphere\PhpED\unitTest\phpunit-6.1.3.phar
View user's profileFind all posts by jphilapySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7965
Reply with quote
Oh, got it, that's the problem. v6 should not have been included because it's not backward compatible, but v5 seems to be forward compatible.
Pre-v6 PHPUnit_Framework_TestListener class is now PHPUnit\Framework\TestListener and seems it's supported by v5.
We'll release update to fix this issue

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 22 May 2004
Posts: 76
Reply with quote
dmitri wrote:
Oh, got it, that's the problem. v6 should not have been included because it's not backward compatible, but v5 seems to be forward compatible.
Pre-v6 PHPUnit_Framework_TestListener class is now PHPUnit\Framework\TestListener and seems it's supported by v5.
We'll release update to fix this issue


Ok thanks. Please keep me informed.
View user's profileFind all posts by jphilapySend private message
PHP Unit - "Class 'PHPUnit_Util_Printer' not found"
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic