When running a PHPUnit test, I would like to be able to dump output so I can debug one or two things. I have tried the following (similar to...
I found the discussion on Do you test private method informative. I have decided, that in some classes, I want to have protected methods, but test them. Some of...
Does anyone know whether there is an assert or something like that which can test whether an exception was thrown in the code being tested? 15 Answers 15
I am struggling to run a single test method named testSaveAndDrop in the file escalation/EscalationGroupTest.php with phpunit. I tried the following combinations: phpunit EscalationGroupTest escalation/EscalationGroupTest.php --filter=escalation/EscalationGroupTest.php::testSaveAndDrop phpunit EscalationGroupTest escalation/EscalationGroupTest.php...