Ouzo\ViewPathResolverTest::shouldReturnJsonPath PHP Method

shouldReturnJsonPath() public method

    public function shouldReturnJsonPath()
    {
        //given
        $type = 'application/json';
        //when
        $path = ViewPathResolver::resolveViewPath('exception', $type);
        //then
        $this->assertEquals(ROOT_PATH . 'Application' . DIRECTORY_SEPARATOR . 'View' . DIRECTORY_SEPARATOR . 'exception.json.phtml', $path);
    }