File: tests/data/email.json

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  PHP Link to HTML  >  tests/data/email.json  >  Download  
File: tests/data/email.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Link to HTML
Convert URLs and email addresses into HTML links
Author: By
Last change:
Date: 1 year ago
Size: 5,975 bytes
 

Contents

Class file image Download
{
    "options": {
    },
    "tests": [
        {
            "test": "example@example.com",
            "expected": "<a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "example.a'ddress@example.com",
            "expected": "<a href=\"mailto:example.a'ddress@example.com\">example.a'ddress@example.com</a>"
        },
        {
            "test": "example+address@example.com",
            "expected": "<a href=\"mailto:example+address@example.com\">example+address@example.com</a>"
        },
        {
            "test": "exam-ple@example.com",
            "expected": "<a href=\"mailto:exam-ple@example.com\">exam-ple@example.com</a>"
        },
        {
            "test": "example@example.example.com",
            "expected": "<a href=\"mailto:example@example.example.com\">example@example.example.com</a>"
        },
        {
            "test": "example@exam-ple.example.com",
            "expected": "<a href=\"mailto:example@exam-ple.example.com\">example@exam-ple.example.com</a>"
        },
        {
            "test": "Lorem example@example.com ipsum.",
            "expected": "Lorem <a href=\"mailto:example@example.com\">example@example.com</a> ipsum."
        },
        {
            "test": "Lorem ipsum example@example.com dolor sit amet.",
            "expected": "Lorem ipsum <a href=\"mailto:example@example.com\">example@example.com</a> dolor sit amet."
        },
        {
            "test": "example@example.com.",
            "expected": "<a href=\"mailto:example@example.com\">example@example.com</a>."
        },
        {
            "test": "example@example.com,",
            "expected": "<a href=\"mailto:example@example.com\">example@example.com</a>,"
        },
        {
            "test": "example@example.example.com.",
            "expected": "<a href=\"mailto:example@example.example.com\">example@example.example.com</a>."
        },
        {
            "test": "(example@example.com)",
            "expected": "(<a href=\"mailto:example@example.com\">example@example.com</a>)"
        },
        {
            "test": "(example@example.example.com)",
            "expected": "(<a href=\"mailto:example@example.example.com\">example@example.example.com</a>)"
        },
        {
            "test": "(example@example.com),",
            "expected": "(<a href=\"mailto:example@example.com\">example@example.com</a>),"
        },
        {
            "test": "'example@example.com'",
            "expected": "'<a href=\"mailto:example@example.com\">example@example.com</a>'"
        },
        {
            "test": "'example@example.com",
            "expected": "'<a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "example@example.com'",
            "expected": "<a href=\"mailto:example@example.com\">example@example.com</a>'"
        },
        {
            "test": "(example@example.com).",
            "expected": "(<a href=\"mailto:example@example.com\">example@example.com</a>)."
        },
        {
            "test": "example@example.com).",
            "expected": "<a href=\"mailto:example@example.com\">example@example.com</a>)."
        },
        {
            "test": "(example@example.com",
            "expected": "(<a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "mailto:example@example.com",
            "expected": "mailto:<a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "(mailto:example@example.com)or",
            "expected": "(mailto:<a href=\"mailto:example@example.com\">example@example.com</a>)or"
        },
        {
            "test": "Email:example@example.com",
            "expected": "Email:<a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "<p>example@example.com</p>",
            "expected": "<p><a href=\"mailto:example@example.com\">example@example.com</a></p>"
        },
        {
            "test": "<p>Email example@example.com</p>",
            "expected": "<p>Email <a href=\"mailto:example@example.com\">example@example.com</a></p>"
        },
        {
            "test": "<x>example@example.com</x>",
            "expected": "<x><a href=\"mailto:example@example.com\">example@example.com</a></x>"
        },
        {
            "test": "<pre/> example@example.com",
            "expected": "<pre/> <a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "<pre /> example@example.com",
            "expected": "<pre /> <a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "<pre></pre> example@example.com",
            "expected": "<pre></pre> <a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "<pre ></pre> example@example.com",
            "expected": "<pre ></pre> <a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "<pre></ pre> example@example.com",
            "expected": "<pre></ pre> <a href=\"mailto:example@example.com\">example@example.com</a>"
        },
        {
            "test": "example@example.com",
            "options": {
                "attr": {
                    "class": "foo"
                }
            },
            "expected": "<a href=\"mailto:example@example.com\" class=\"foo\">example@example.com</a>"
        },
        {
            "test": "example@example.com",
            "options": {
                "attr": {
                    "class": "foo bar",
                    "name": "baz"
                },
                "ignore": [
                    "qux"
                ]
            },
            "expected": "<a href=\"mailto:example@example.com\" class=\"foo bar\" name=\"baz\">example@example.com</a>"
        }
    ]
}

For more information send a message to info at phpclasses dot org.