ffmpeg-php (0.6.0-2.1) test_fixes.patch

Summary

 tests/getAudioBitRate.phpt           |    3 +++
 tests/getAudioChannels.phpt          |    3 +++
 tests/getAudioCodec.phpt             |    3 +++
 tests/getAudioSampleRate.phpt        |    3 +++
 tests/getAudioStreamId.phpt          |    3 +++
 tests/getBitRate.phpt                |    3 +++
 tests/getDuration.phpt               |    3 +++
 tests/getFileName.phpt               |    3 +++
 tests/getFrame.phpt                  |    3 +++
 tests/getFrameCount.phpt             |    3 +++
 tests/getFrameHeight.phpt            |    3 +++
 tests/getFrameNumber.phpt            |    3 +++
 tests/getFrameRate.phpt              |    3 +++
 tests/getFrameWidth.phpt             |    3 +++
 tests/getFramesBackwards.phpt        |    3 +++
 tests/getFramesForward.phpt          |    3 +++
 tests/getFramesForwardPassedEnd.phpt |    3 +++
 tests/getFramesNoArg.phpt            |    3 +++
 tests/getID3Info.phpt                |    3 +++
 tests/getNextKeyFrame.phpt           |    3 +++
 tests/getPTS.phpt                    |    3 +++
 tests/getPixelAspectRatio.phpt       |    3 +++
 tests/getPixelFormat.phpt            |    3 +++
 tests/getVideoBitRate.phpt           |    3 +++
 tests/getVideoCodec.phpt             |    3 +++
 tests/getVideoStreamId.phpt          |    3 +++
 tests/hasAudio.phpt                  |    3 +++
 tests/isKeyFrame.phpt                |    3 +++
 tests/persistentMovie.phpt           |    2 ++
 29 files changed, 86 insertions(+)

    
download this patch

Patch contents

--- a/tests/getAudioBitRate.phpt
+++ b/tests/getAudioBitRate.phpt
@@ -2,6 +2,9 @@
 ffmpeg getAudioBitRate test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getAudioChannels.phpt
+++ b/tests/getAudioChannels.phpt
@@ -2,6 +2,9 @@
 ffmpeg getAudioChannels test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getAudioCodec.phpt
+++ b/tests/getAudioCodec.phpt
@@ -2,6 +2,9 @@
 ffmpeg getAudioCodec test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getAudioSampleRate.phpt
+++ b/tests/getAudioSampleRate.phpt
@@ -2,6 +2,9 @@
 ffmpeg getAudioSampleRate test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getAudioStreamId.phpt
+++ b/tests/getAudioStreamId.phpt
@@ -2,6 +2,9 @@
 ffmpeg getAudioStreamId test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getBitRate.phpt
+++ b/tests/getBitRate.phpt
@@ -2,6 +2,9 @@
 ffmpeg getBitRate test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getDuration.phpt
+++ b/tests/getDuration.phpt
@@ -2,6 +2,9 @@
 ffmpeg getDuration test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded\n"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFileName.phpt
+++ b/tests/getFileName.phpt
@@ -2,6 +2,9 @@
 ffmpeg getFileName test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFrame.phpt
+++ b/tests/getFrame.phpt
@@ -6,6 +6,9 @@ extension_loaded('ffmpeg') or die("skip
 extension_loaded('gd') or die("skip gd extension not avaliable.\n");
 function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
 ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $frame = 73;
--- a/tests/getFrameCount.phpt
+++ b/tests/getFrameCount.phpt
@@ -2,6 +2,9 @@
 ffmpeg getFrameCount test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded\n"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFrameHeight.phpt
+++ b/tests/getFrameHeight.phpt
@@ -2,6 +2,9 @@
 ffmpeg getFrameHeight test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded\n"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFrameNumber.phpt
+++ b/tests/getFrameNumber.phpt
@@ -2,6 +2,9 @@
 ffmpeg getFrameNumber test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded\n"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFrameRate.phpt
+++ b/tests/getFrameRate.phpt
@@ -2,6 +2,9 @@
 ffmpeg getFrameRate test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded\n"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFrameWidth.phpt
+++ b/tests/getFrameWidth.phpt
@@ -2,6 +2,9 @@
 ffmpeg getFrameWidth test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded\n"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFramesBackwards.phpt
+++ b/tests/getFramesBackwards.phpt
@@ -6,6 +6,9 @@ extension_loaded('ffmpeg') or die("skip
 extension_loaded('gd') or die("skip gd extension not avaliable.");
 function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
 ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFramesForward.phpt
+++ b/tests/getFramesForward.phpt
@@ -6,6 +6,9 @@ extension_loaded('ffmpeg') or die("skip
 extension_loaded('gd') or die("skip gd extension not avaliable.");
 function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
 ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFramesForwardPassedEnd.phpt
+++ b/tests/getFramesForwardPassedEnd.phpt
@@ -6,6 +6,9 @@ extension_loaded('ffmpeg') or die("skip
 extension_loaded('gd') or die("skip gd extension not avaliable.");
 function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
 ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getFramesNoArg.phpt
+++ b/tests/getFramesNoArg.phpt
@@ -6,6 +6,9 @@ extension_loaded('ffmpeg') or die("skip
 extension_loaded('gd') or die("skip gd extension not avaliable.");
 function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
 ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getID3Info.phpt
+++ b/tests/getID3Info.phpt
@@ -2,6 +2,9 @@
 ffmpeg getID3Info() test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/16Hz-20kHz-Exp-1f-5sec.mp3');
--- a/tests/getNextKeyFrame.phpt
+++ b/tests/getNextKeyFrame.phpt
@@ -6,6 +6,9 @@ extension_loaded('ffmpeg') or die("skip
 extension_loaded('gd') or die("skip gd extension not avaliable.");
 function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
 ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getPTS.phpt
+++ b/tests/getPTS.phpt
@@ -6,6 +6,9 @@ extension_loaded('ffmpeg') or die("skip
 extension_loaded('gd') or die("skip gd extension not avaliable.");
 function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
 ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getPixelAspectRatio.phpt
+++ b/tests/getPixelAspectRatio.phpt
@@ -2,6 +2,9 @@
 ffmpeg getPixelAspectRatio test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getPixelFormat.phpt
+++ b/tests/getPixelFormat.phpt
@@ -2,6 +2,9 @@
 ffmpeg getPixelFormat test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getVideoBitRate.phpt
+++ b/tests/getVideoBitRate.phpt
@@ -2,6 +2,9 @@
 ffmpeg getVideoBitRate test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getVideoCodec.phpt
+++ b/tests/getVideoCodec.phpt
@@ -2,6 +2,9 @@
 ffmpeg getVideoCodec test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/getVideoStreamId.phpt
+++ b/tests/getVideoStreamId.phpt
@@ -2,6 +2,9 @@
 ffmpeg getVideoStreamId test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/hasAudio.phpt
+++ b/tests/hasAudio.phpt
@@ -2,6 +2,9 @@
 ffmpeg hasAudio test
 --SKIPIF--
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded\n"); ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/isKeyFrame.phpt
+++ b/tests/isKeyFrame.phpt
@@ -6,6 +6,9 @@ extension_loaded('ffmpeg') or die("skip
 extension_loaded('gd') or die("skip gd extension not avaliable.");
 function_exists("imagecreatetruecolor") or die("skip function imagecreatetruecolor unavailable");
 ?>
+--INI--
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi');
--- a/tests/persistentMovie.phpt
+++ b/tests/persistentMovie.phpt
@@ -4,6 +4,8 @@ ffmpeg persistent movie test
 <?php extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); ?>
 --INI--
 ffmpeg.allow_persistent=1
+ffmpeg.show_warnings=1
+error_reporting = E_ALL & ~E_NOTICE
 --FILE--
 <?php
 $mov = new ffmpeg_movie(dirname(__FILE__) . '/test_media/robot.avi', 1);