src/Mock/MockFactory.php
public function createFullMock(ReflectionClass $class): Mock
    {
        $mock = $class->newInstanceWithoutConstructor();
        $this->handleFactory
            ->instanceHandle($mock, strval($this->labelSequencer->next()));

        return $mock;
    }
public function createFullMock(ReflectionClass $class): Mock
    {
        $mock = $class->newInstanceWithoutConstructor();
        $this->handleFactory
            ->instanceHandle($mock, strval($this->labelSequencer->next()));

        return $mock;
    }
public function createFullMock ( ReflectionClass $ class ) : Mock { $ mock = $ class -> newInstanceWithoutConstructor ( ) ; $ this -> handleFactory -> instanceHandle ( $ mock , strval ( $ this -> labelSequencer -> next ( ) ) ) ; return $ mock ; }
Create a new full mock instance for the supplied class.

@param ReflectionClass $class The class.

@return Mock          The newly created mock.
@throws MockException If the mock generation fails.
Create a new full mock instance for the supplied class .