I'm trying to put together some PHPUnit tests in Drupal 8. I'm running the tests from the command line, using /vendor/bin/phpunit, but I'm having troubles figuring out how to dump a variable to the screen for debugging purposes.
For that matter, I'm using this:
$this->assertEquals(2, $this->currentUser->id(), 'ID is correct');
And when it passes, the message 'ID is correct' is not shown in the console. Does anyone know how to make the error messages properly show?