tests/unit/Subjects/AbstractSubjectTest.php
/**
     * Test if an exception is thrown when a invalid logger is requested.
     *
     * @return
     */
Test if an exception is thrown when a invalid logger is requested.
@return
Test if an exception is thrown when a invalid logger is requested . @return
public function testGetSystemLoggerWithException()
    {
        $this->expectException(\Exception::class);
        $this->expectExceptionMessage("The requested logger 'invalid-logger-name' is not available");
        $this->abstractSubject->getSystemLogger('invalid-logger-name');
    }
public function testGetSystemLoggerWithException ( ) { $ this -> expectException ( \ Exception :: class ) ; $ this -> expectExceptionMessage ( " The requested logger 'invalid-logger-name' is not available " ) ; $ this -> abstractSubject -> getSystemLogger ( 'invalid-logger-name' ) ; }
Test if an exception is thrown when a invalid logger is requested.
Test if an exception is thrown when a invalid logger is requested .