OSDN Git Service

test: fixed calling protected method
authorSotaro KARASAWA <sotarok@users.sourceforge.jp>
Sat, 29 Jan 2011 03:29:26 +0000 (12:29 +0900)
committerSotaro KARASAWA <sotarok@users.sourceforge.jp>
Sat, 29 Jan 2011 03:29:26 +0000 (12:29 +0900)
test/MockProject.php

index 014b3dc..3650be4 100644 (file)
@@ -155,7 +155,6 @@ class Ethna_MockProject
         $c->setGateway(GATEWAY_WWW);
         ob_start();
         @$c->trigger($action_name, "");  // suppress header related error.
-        $c->end();
         $result = ob_get_contents();
         ob_end_clean();
 
@@ -171,7 +170,7 @@ class Ethna_MockProject
      *  @return Ethna_Controller コントローラクラスのインスタンス
      *          失敗したらEthna_Error 
      */
-    function &getController()
+    public function getController()
     {
         if (($r = $this->create_ifnot_exists()) !== true) {
             return $r;