Yii Framework Forum: [SOLVED] phpunit won't test - Yii Framework Forum

Jump to content

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

[SOLVED] phpunit won't test

#1 User is offline   fonis 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 22-March 12

Posted 23 March 2012 - 06:44 AM

hey guys, i recently started following this great book, but i'm in a problem at page 50.

I followed his description on writing the messagetest.php, and at the beginning it gave no problems. i started by writing a test that would fail, and i did so according to phpunit. i then worked around it by writing a public function. again phpunit worked fine, and gave me the test-results.
but then, when i added code inside the public function, phpunit suddenly stopped working. when i wrote "phpunit unit/messagetest.php" in the terminal (mac), it just jumped to the next line.

so what should i do to get my test results?

btw, if i delete the code inside the public function, then it all works again...


EDIT: I found a syntax error in my code. when i corrected, it all worked.
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