public function testCallbackIsExecutedForOutput() {
$p = $this
->getProcess(sprintf('php -r %s', escapeshellarg('echo \'foo\';')));
$called = false;
$p
->run(function ($type, $buffer) use (&$called) {
$called = $buffer === 'foo';
});
$this
->assertTrue($called, 'The callback should be executed with the output');
}