/** * Test exec fail * @expectedException Exception * @expectedExceptionMessage exit 1 2>&1 failed with exit code 1 */ function testExecFail() { Utils::exec('exit 1', true); }