getMessage() == 'Minify_YUICompressor : YUI compressor execution failed.', 'Minify_YUICompressor : got expected Exception'); } try { $options = array( 'stack-size' => '2m', ); $minOutput = Minify_YUICompressor::minifyCss($src, $options); } catch (Exception $e) { assertTrue(false, $e->getMessage());; $minOutput = false; } $passed = assertTrue($minExpected == $minOutput, 'Minify_YUICompressor : Overall'); if (__FILE__ === realpath($_SERVER['SCRIPT_FILENAME'])) { echo "\n---Output: " .countBytes($minOutput). " bytes\n\n{$minOutput}\n\n"; echo "---Expected: " .countBytes($minExpected). " bytes\n\n{$minExpected}\n\n"; echo "---Source: " .countBytes($src). " bytes\n\n{$src}\n\n\n"; } } test_Minify_YuiCSS();