OSDN Git Service

書き換え文字列が長いパターンと短いパターンで分けた trunk
authoryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Mon, 13 Jun 2011 05:32:17 +0000 (05:32 +0000)
committeryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Mon, 13 Jun 2011 05:32:17 +0000 (05:32 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@590 7c90b180-03d5-4157-b861-58a559ae9d1e

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

index cba5ff4..3fcaafa 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-replaceActionString() : ActionPush
+replaceActionString() : ActionPush longer parameter
 --FILE--
 <?php
 
diff --git a/src/tests/action101.phpt b/src/tests/action101.phpt
new file mode 100644 (file)
index 0000000..4c1027d
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+replaceActionString() : ActionPush shorten parameter
+--FILE--
+<?php
+
+$swfdata = file_get_contents('tests/textvar.swf');
+$obj = new SWFEditor();
+$obj->input($swfdata);
+$params = array('dummydummy' => 'dummy', 'inputvar' => 'rep');
+$obj->replaceActionStrings($params);
+echo md5($obj->output())."\n";
+?>
+===DONE===
+--EXPECTF--
+3d27f4ce7242bdced1ad2a3299673ab8
+===DONE===