コード例 #1
0
 function testTestCaseRegistry()
 {
     $test =& new MockSimpleTestCase($this);
     $class = SimpleMock::registerTest($test);
     $this->assertReference($test, SimpleMock::injectTest($class));
 }
コード例 #2
0
 /**
  *    Triggers an assertion on the held test case.
  *    Should be overridden when using another test
  *    framework other than the SimpleTest one if the
  *    assertion method has a different name.
  *    @param boolean $assertion     True will pass.
  *    @param string $message        Message that will go with
  *                                  the test event.
  *    @access protected
  */
 function _assertTrue($assertion, $message)
 {
     $test =& SimpleMock::injectTest($this->_test);
     $test->assertTrue($assertion, $message);
 }