Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Pagekit\Filter\Tests; use Pagekit\Filter\SlugifyFilter; class SlugifyTe..

Decoded Output download

<?php

namespace Pagekit\Filter\Tests;

use Pagekit\Filter\SlugifyFilter;

class SlugifyTest extends \PHPUnit_Framework_TestCase
{
    public function testFilter()
    {
        $filter = new SlugifyFilter;

        $values = [
            'PAGEKIT'                  => 'pagekit',
            ":#*\"@+=;!><&.%()/'\|[]" => "",
            "  a b ! c   "             => "a-b-c",
        ];

        foreach ($values as $in => $out) {
            $this->assertEquals($out, $filter->filter($in));
        }

    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Pagekit\Filter\Tests;

use Pagekit\Filter\SlugifyFilter;

class SlugifyTest extends \PHPUnit_Framework_TestCase
{
    public function testFilter()
    {
        $filter = new SlugifyFilter;

        $values = [
            'PAGEKIT'                  => 'pagekit',
            ":#*\"@+=;!><&.%()/'\\|[]" => "",
            "  a b ! c   "             => "a-b-c",
        ];

        foreach ($values as $in => $out) {
            $this->assertEquals($out, $filter->filter($in));
        }

    }
}

Function Calls

None

Variables

None

Stats

MD5 8d6998afe6ae6ea4e49aec91120c022b
Eval Count 0
Decode Time 68 ms