<?php

use Helmich\Psr7Assert\Constraint\HasHeaderConstraint;
use Helmich\Psr7Assert\Constraint\HasUriConstraint;

function hasUri($uri)
{
    return new HasUriConstraint($uri);
}

function hasHeader($name, $constraint = NULL)
{
    return new HasHeaderConstraint($name, $constraint);
}

function hasContentType($contentType)
{
    return new HasHeaderConstraint('Content-Type', $contentType);
}
<?php

use Helmich\Psr7Assert\Constraint\BodyMatchesConstraint;
use Helmich\Psr7Assert\Constraint\HasHeaderConstraint;
use Helmich\Psr7Assert\Constraint\HasUriConstraint;

function hasUri($uri)
{
    return new HasUriConstraint($uri);
}

function hasHeader($name, $constraint = NULL)
{
    return new HasHeaderConstraint($name, $constraint);
}

function hasContentType($contentType)
{
    return new HasHeaderConstraint('Content-Type', $contentType);
}

function bodyMatches($constraint)
{
    return new BodyMatchesConstraint($constraint);
}
Add missing functional interface for BodyMatchesConstraint
Add missing functional interface for BodyMatchesConstraint
