irm-1.6-b3/testing/simpletest/test/mock_objects_test.php
/**
         * This addresses issue #1231401.  Without the fix in place, this will
		 * generate a fatal PHP error.
		 */
This addresses issue #1231401.  Without the fix in place, this will
generate a fatal PHP error.
This addresses issue #1231401 . Without the fix in place this will generate a fatal PHP error .
function testBasicConstruct() {
            Mock::generate('ConstructorSubClass');
            $mock = &new MockConstructorSubClass();
            $this->assertIsA($mock, 'SimpleMock');
            $this->assertTrue(method_exists($mock, 'ConstructorSuperClass'));
        }
function testBasicConstruct ( ) { Mock :: generate ( 'ConstructorSubClass' ) ; $ mock = & new MockConstructorSubClass ( ) ; $ this -> assertIsA ( $ mock , 'SimpleMock' ) ; $ this -> assertTrue ( method_exists ( $ mock , 'ConstructorSuperClass' ) ) ; }
This addresses issue #1231401.
This addresses issue #1231401 .