phpunit testing console commands

Is it possible to user phpunit to test console commands? I keep getting missing method for the class, though I’ve checked multiple times that it is correct, or I depending on how I try and set it up I keep needing to pass in the command and runner to the CConsole class constructor.