<?php

namespace Backend\Modules\Pages\Tests\Model;

use Backend\Modules\Pages\Engine\Model;

class ModelTest extends \PHPUnit_Framework_TestCase
{
    public function testUrlIsEncoded()
    {
        $this->assertEquals(
            'http://www.google.be/Quote',
            Model::getEncodedRedirectURL('http://www.google.be/Quote')
        );
        $this->assertEquals(
            'http://www.google.be/Quote%22HelloWorld%22',
            Model::getEncodedRedirectURL('http://www.google.be/Quote"HelloWorld"')
        );
        $this->assertEquals(
            'http://www.google.be/Quote%27HelloWorld%27',
            Model::getEncodedRedirectURL("http://www.google.be/Quote'HelloWorld'")
        );
        $this->assertEquals(
            'http://cédé.be/Quote%22HelloWorld%22',
            Model::getEncodedRedirectURL('http://cédé.be/Quote"HelloWorld"')
        );
    }
}

<?php

namespace Backend\Modules\Pages\Tests\Model;

use Backend\Modules\Pages\Engine\Model;
use PHPUnit_Framework_TestCase;

class ModelTest extends PHPUnit_Framework_TestCase
{
    public function testUrlIsEncoded()
    {
        $this->assertEquals(
            'http://www.google.be/Quote',
            Model::getEncodedRedirectURL('http://www.google.be/Quote')
        );
        $this->assertEquals(
            'http://www.google.be/Quote%22HelloWorld%22',
            Model::getEncodedRedirectURL('http://www.google.be/Quote"HelloWorld"')
        );
        $this->assertEquals(
            'http://www.google.be/Quote%27HelloWorld%27',
            Model::getEncodedRedirectURL("http://www.google.be/Quote'HelloWorld'")
        );
        $this->assertEquals(
            'http://cédé.be/Quote%22HelloWorld%22',
            Model::getEncodedRedirectURL('http://cédé.be/Quote"HelloWorld"')
        );
    }
}

Increase minimum php version to5. 6::q
Increase minimum php version to5. 6::q

PHP 5.5 reaches EOL on 10 Jul 2016, after that we no longer support it for security reasons
