TestException
        
        extends LogicException
    
    
            
            in package
            
        
    
    
            
            uses
                            DebugTraceableTrait                    
    
Exception thrown when there is an error with the test code.
Table of Contents
Methods
- __construct() : mixed
- Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
- forInvalidMockClass() : static
Methods
__construct()
Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
    public
        final            __construct([string $message = '' ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
    Parameters
- $message : string = ''
- $code : int = 0
- $previous : Throwable|null = null
forInvalidMockClass()
    public
            static        forInvalidMockClass(string $name) : static
    Parameters
- $name : string