-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put leading uppercase letter in error messages
- Loading branch information
Chung Leong
committed
May 7, 2014
1 parent
6055ecf
commit ecba39a
Showing
6 changed files
with
126 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
Issue #12: Read from write stream test | ||
--SKIPIF-- | ||
<?php | ||
if(!in_array('avi', av_get_encoders())) print 'skip AVI encoder not avilable'; | ||
?> | ||
--FILE-- | ||
<?php | ||
|
||
$folder = dirname(__FILE__); | ||
$filename = "test.avi"; | ||
$path = "$folder/$filename"; | ||
|
||
$file = av_file_open($path, "w"); | ||
$videoStream = av_stream_open($file, "video", array( "width" => 100, "height" => 100, "frame_rate" => 12, "bit_rate" => 1024 * 1000, "gop" => 0)); | ||
|
||
$image = imagecreatetruecolor(50, 50); | ||
av_stream_read_image($videoStream, $image, $videoTime); | ||
|
||
?> | ||
--EXPECTREGEX-- | ||
.*Warning.*Not a readable stream.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--TEST-- | ||
MP3 test | ||
--SKIPIF-- | ||
<?php | ||
if(!in_array('mp3', av_get_encoders())) print 'skip MP3 encoder not avilable'; | ||
?> | ||
--FILE-- | ||
<?php | ||
|
||
require("helpers.php"); | ||
|
||
$folder = dirname(__FILE__); | ||
$filename = "test.mp3"; | ||
|
||
$testVideo = new TestVideo("$folder/$filename", 640, 480, 24, 5.0, false, true); | ||
$testVideo->create(); | ||
$testVideo->verify(); | ||
$testVideo->delete(); | ||
|
||
echo "OK\n"; | ||
|
||
?> | ||
--EXPECT-- | ||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--TEST-- | ||
OGG test | ||
--SKIPIF-- | ||
<?php | ||
if(!in_array('ogg', av_get_encoders())) print 'skip OGG encoder not avilable'; | ||
?> | ||
--FILE-- | ||
<?php | ||
|
||
require("helpers.php"); | ||
|
||
$folder = dirname(__FILE__); | ||
$filename = "test.ogg"; | ||
|
||
$testVideo = new TestVideo("$folder/$filename", 640, 480, 24, 5.0, false, true); | ||
$testVideo->create(); | ||
$testVideo->verify(); | ||
$testVideo->delete(); | ||
|
||
echo "OK\n"; | ||
|
||
?> | ||
--EXPECT-- | ||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters