gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

Mockable.php (505B)


      1 <?php
      2 class Mockable
      3 {
      4     public $constructorArgs;
      5     public $cloned;
      6 
      7     public function __construct($arg1 = null, $arg2 = null)
      8     {
      9         $this->constructorArgs = array($arg1, $arg2);
     10     }
     11 
     12     public function mockableMethod()
     13     {
     14         // something different from NULL
     15         return true;
     16     }
     17 
     18     public function anotherMockableMethod()
     19     {
     20         // something different from NULL
     21         return true;
     22     }
     23 
     24     public function __clone()
     25     {
     26         $this->cloned = true;
     27     }
     28 }