_generated\AcceptanceTesterActions::canSeeHttpHeaderOnce PHP Méthode

canSeeHttpHeaderOnce() public méthode

Checks that http response header is received only once. HTTP RFC2616 allows multiple response headers with the same name. You can check that you didn't accidentally sent the same header twice. php seeHttpHeaderOnce('Cache-Control'); ?>>
See also: Codeception\Module\REST::seeHttpHeaderOnce()
public canSeeHttpHeaderOnce ( $name )
$name
    public function canSeeHttpHeaderOnce($name)
    {
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeHttpHeaderOnce', func_get_args()));
    }
AcceptanceTesterActions