tests/unit/Subjects/AbstractSubjectTest.php
/**
     * Test's if the getHeaders() method returns the given headers.
     *
     * @return void
     */
Test's if the getHeaders() method returns the given headers.
@return void
Test ' s if the getHeaders () method returns the given headers . @return void
public function testSetGetHeaders()
    {
        $this->abstractSubject->setHeaders(array($headerName = 'test' => 0));
        $this->assertCount(1, $headers = $this->abstractSubject->getHeaders());
        $this->assertArrayHasKey($headerName, $headers);
        $this->assertSame(0, $headers[$headerName]);
    }
public function testSetGetHeaders ( ) { $ this -> abstractSubject -> setHeaders ( array ( $ headerName = 'test' => 0 ) ) ; $ this -> assertCount ( 1 , $ headers = $ this -> abstractSubject -> getHeaders ( ) ) ; $ this -> assertArrayHasKey ( $ headerName , $ headers ) ; $ this -> assertSame ( 0 , $ headers [ $ headerName ] ) ; }
Test's if the getHeaders() method returns the given headers.
Test ' s if the getHeaders () method returns the given headers .