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 Tests; class HelpTest extends TestCase { public function test_wysiwy..

Decoded Output download

<?php

namespace Tests;

class HelpTest extends TestCase
{
    public function test_wysiwyg_help_shows_tiny_and_tiny_license_link()
    {
        $resp = $this->get('/help/wysiwyg');
        $resp->assertOk();
        $this->withHtml($resp)->assertElementExists('a[href="https://www.tiny.cloud/"]');
        $this->withHtml($resp)->assertElementExists('a[href="' . url('/libs/tinymce/license.txt') . '"]');
    }

    public function test_tiny_license_exists_where_expected()
    {
        $expectedPath = public_path('/libs/tinymce/license.txt');
        $this->assertTrue(file_exists($expectedPath));

        $contents = file_get_contents($expectedPath);
        $this->assertStringContainsString('MIT License', $contents);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Tests;

class HelpTest extends TestCase
{
    public function test_wysiwyg_help_shows_tiny_and_tiny_license_link()
    {
        $resp = $this->get('/help/wysiwyg');
        $resp->assertOk();
        $this->withHtml($resp)->assertElementExists('a[href="https://www.tiny.cloud/"]');
        $this->withHtml($resp)->assertElementExists('a[href="' . url('/libs/tinymce/license.txt') . '"]');
    }

    public function test_tiny_license_exists_where_expected()
    {
        $expectedPath = public_path('/libs/tinymce/license.txt');
        $this->assertTrue(file_exists($expectedPath));

        $contents = file_get_contents($expectedPath);
        $this->assertStringContainsString('MIT License', $contents);
    }
}

Function Calls

None

Variables

None

Stats

MD5 a4763f7ed07b5a4d98d43b174e68f2ac
Eval Count 0
Decode Time 111 ms