protected function assertPageLoaded($uri, $message = null)
    {
        $status = $this->statusCode();

        try {
            $this->assertEquals(200, $status);
        } catch (PHPUnitException $e) {
            $message = $message ?: "A GET request to '{$uri}' failed. Got a {$status} code instead.";

            $this->logLatestContent();

            if (method_exists($this, 'handleInternalError')) {
                $this->handleInternalError($message);
            }

            throw new PHPUnitException($message);
        }
    }
protected function assertPageLoaded($uri, $message = null)
    {
        $status = $this->statusCode();

        try {
            $this->assertEquals(200, $status);
        } catch (PHPUnitException $e) {
            $message = $message ?: "A GET request to '{$uri}' failed. Got a {$status} code instead.";

            $this->logLatestContent();

            if (method_exists($this, 'handleInternalError')) {
                $this->handleInternalError($message);
            }

            throw new PHPUnitException($message);
        }
    }
protected function assertPageLoaded ( $ uri , $ message = null ) { $ status = $ this -> statusCode ( ) ; try { $ this -> assertEquals ( 200 , $ status ) ; } catch ( PHPUnitException $ e ) { $ message = $ message ? : "A GET request to '{$uri}' failed. Got a {$status} code instead." ; $ this -> logLatestContent ( ) ; if ( method_exists ( $ this , 'handleInternalError' ) ) { $ this -> handleInternalError ( $ message ) ; } throw new PHPUnitException ( $ message ) ; } }
Assert that a 200 status code was returned from the last call.

@param  string $uri
@param  string $message
@throws PHPUnitException
@return void
Assert that a 200 status code was returned from the last call .