tests/unit/Subjects/AbstractSubjectTest.php
/**
     * Test's if the getHeader() method throwns the expected exception when requesting an invalid header name.
     *
     * @return void
     */
Test's if the getHeader() method throwns the expected exception when requesting an invalid header name.
@return void
Test ' s if the getHeader () method throwns the expected exception when requesting an invalid header name . @return void
public function testGetInvalidHeader()
    {
        $this->expectException(\Exception::class);
        $this->expectExceptionMessage("Header unknown is not available");
        $this->abstractSubject->getHeader('unknown');
    }
public function testGetInvalidHeader ( ) { $ this -> expectException ( \ Exception :: class ) ; $ this -> expectExceptionMessage ( " Header unknown is not available " ) ; $ this -> abstractSubject -> getHeader ( 'unknown' ) ; }
Test's if the getHeader() method throwns the expected exception when requesting an invalid header name.
Test ' s if the getHeader () method throwns the expected exception when requesting an invalid header name .