Phprest\ErrorHandler\Formatter\JsonXmlTest::testFormatWithNotAcceptable PHP Method

testFormatWithNotAcceptable() public method

    public function testFormatWithNotAcceptable()
    {
        $request = Request::createFromGlobals();
        $request->headers->set('Accept', 'yaml');
        $jsonXmlFormatter = new JsonXml($this->config, $request);
        $this->assertContains('"code":0,"message":"Not Acceptable","details":["yaml is not supported"]', $jsonXmlFormatter->format(new \Exception()));
    }