コード例 #1
0
ファイル: mock_objects.php プロジェクト: Boris-de/videodb
 /**
  *    Builds initial reflection object.
  *    @param string $class        Class to be mocked.
  *    @param string $mock_class   New class with identical interface,
  *                                but no behaviour.
  */
 function __construct($class, $mock_class)
 {
     $this->class = $class;
     $this->mock_class = $mock_class;
     if (!$this->mock_class) {
         $this->mock_class = 'Mock' . $this->class;
     }
     $this->mock_base = SimpleTest::getMockBaseClass();
     $this->reflection = new SimpleReflection($this->class);
 }
コード例 #2
0
ファイル: mock_objects.php プロジェクト: sebs/simpletest
 function MockGenerator($class, $mock_class)
 {
     $this->_class = $class;
     $this->_mock_class = $mock_class;
     $this->_mock_base = SimpleTest::getMockBaseClass();
     $this->_reflection = new SimpleReflection($this->_class);
 }
コード例 #3
0
 function __construct($class, $mock_class)
 {
     $this->_class = $class;
     $this->_mock_class = $mock_class;
     $this->_mock_base = SimpleTest::getMockBaseClass();
     $this->_reflection = new SimpleReflection($this->_class);
 }