OSDN Git Service

replaceActionString の ActionPush 入れ替えのテスト
authoryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Thu, 9 Jun 2011 05:56:12 +0000 (05:56 +0000)
committeryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Thu, 9 Jun 2011 05:56:12 +0000 (05:56 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@580 7c90b180-03d5-4157-b861-58a559ae9d1e

src/tests/action100.phpt [new file with mode: 0644]

diff --git a/src/tests/action100.phpt b/src/tests/action100.phpt
new file mode 100644 (file)
index 0000000..7e3e297
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+replaceActionString() : ActionPush
+--FILE--
+<?php
+
+$swfdata = file_get_contents('tests/textvar.swf');
+$obj = new SWFEditor();
+$obj->input($swfdata);
+$params = array('dummy' => 'dummydummy', 'inputvar' => 'replacedvar');
+$obj->replaceActionString($params);
+echo md5($obj->output())."\n";
+?>
+===DONE===
+--EXPECTF--
+1a3f85b044e039b4977c38938d21ab4b
+===DONE===