Yii Framework Forum: Phpunit Total Crash - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Phpunit Total Crash Rate Topic: -----

#1 User is offline   forn 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 07-January 13

Posted 07 January 2013 - 04:32 PM

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?!

Attached File(s)


0

#2 User is offline   forn 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 07-January 13

Posted 07 January 2013 - 04:54 PM

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 :).
0

#3 User is offline   d-ph 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 24-February 13

Posted 28 February 2013 - 09:51 AM

I love you, mate.

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

#4 User is offline   pimski 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 10-January 12

Posted 05 April 2013 - 04:10 AM

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! :)
0

#5 User is offline   pimski 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 10-January 12

Posted 05 April 2013 - 04:33 AM

After reading the upgrade instructions more carefully the differences aren't that big. Upgraded and got everything working.
Thanks!
0

#6 User is offline   Michael.Kling 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 28-May 13

Posted 28 May 2013 - 12:10 PM

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

#7 User is offline   lhamide00 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 30-May 12

Posted 30 September 2013 - 06:35 AM

You just saved me a load of trouble. Thanks!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users