Phpunit Total Crash

Hi,

I have


PHPUnit 3.7.10 by Sebastian Bergmann.

installed over pear.

with php


PHP 5.4.10 (cli) (built: Dec 19 2012 20:33:34)

Copyright (c) 1997-2012 The PHP Group

Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

I have a simple test


<?php 

class UserTest extends CDbTestCase

{

 

    public function testFoo()

    {

    	$this->assertEquals(1,1);

    	

    }

}

?>

I’m running


protected\tests> phpunit unit/UserTest.php

And then the cmd.exe crashes. No result from phpunit. In German the message ist "cli funktioniert nicht mehr" (see attachment). In English somethink like: "CLI does not work anymore" / Bluescreen for cmd.

I’m using Windows 7 / 64bit.

First I used xampp. Then Zendserver CE. Now I’m using the original php from php.net for Windows. Always the same problem :(.

phpunit --version, etc. works. So phpunit is installed fine.

php.exe works also.

xdebug is installed (see php -v)

Optional I started


java -jar selenium-server-standalone-2.28.0.jar

(Maybe yii needs selenium in default setup). But no different.

Working for more than 6 hours on this bug :(. Any idea?!

It is always the same. After writing the post I found the solution.

I used yii 1.1.12. With 1.1.13 it is working :).

I love you, mate.

I’ve been fighting with this for 2 days. Upgraded everything except the Yii itself

Hmmm…

That’s a shame. I’m using yii 1.1.12 and haven’t upgraded to 1.1.13 (it’s not backwards compatible because of te table alias changes)… :(

Thanks for the tip though! :)

After reading the upgrade instructions more carefully the differences aren’t that big. Upgraded and got everything working.

Thanks!

Same happened to me, PHPUnit 3.7.21, Yii 1.1.12 - Upgrade to 13 solved it. Thanks!

You just saved me a load of trouble. Thanks!