[Swfed-svn] swfed-svn [508] replaceTagData のテストスクリプト

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2011年 4月 1日 (金) 22:28:16 JST


Revision: 508
          http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=508
Author:   yoya
Date:     2011-04-01 22:28:16 +0900 (Fri, 01 Apr 2011)

Log Message:
-----------
replaceTagData のテストスクリプト

Added Paths:
-----------
    trunk/src/tests/tag001.phpt


-------------- next part --------------
Added: trunk/src/tests/tag001.phpt
===================================================================
--- trunk/src/tests/tag001.phpt	                        (rev 0)
+++ trunk/src/tests/tag001.phpt	2011-04-01 13:28:16 UTC (rev 508)
@@ -0,0 +1,23 @@
+--TEST--
+replaceTagData
+--FILE--
+<?php
+
+$swf_filename = 'tests/negimiku.swf';
+$tag_filename = 'tests/saitama-3.bits';
+
+$swfdata = file_get_contents($swf_filename);
+$tagdata = file_get_contents($tag_filename);
+
+$obj = new SWFEditor();
+$obj->input($swfdata);
+$image_id = 1;
+$tag_seqno = 2;
+$obj->replaceTagData($tag_seqno, $tagdata);
+echo md5($obj->output())."\n";
+# echo $obj->output();
+?>
+===DONE===
+--EXPECTF--
+efbdb13e9f04f73c80951bb049423d2e
+===DONE===



Swfed-svn メーリングリストの案内
Zurück zum Archiv-Index