0

In my code, not the test, but the actuall class I am testing there is an if{ no closing }
PHPunit just crashes without telling what went wrong.
How do I configure it to show me the errors that it encounters?

the class is

class A{

public function __construct(){
if(true){

}

}

and the test is

$A=new A;
3
  • can you provide your code and the test code? Commented May 20, 2013 at 7:08
  • This might be a duplicate of stackoverflow.com/questions/3841190/…. Commented May 20, 2013 at 15:16
  • Similar but not. If I understand it, that ticket shows how u can catch fatal errors through an external process (eclipse plugin in this case) My problem is I see no output. At least, I think my issue is different. Commented May 20, 2013 at 16:48

1 Answer 1

0

Its very common to run lint (php -l [filename.php]) first, since trying to test code that is intrinsically broken, doesn't seem worthwhile in the first place.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.