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\Wallabag\Controller\Import; use Tests\Wallabag\WallabagTestCase; ..

Decoded Output download

<?php

namespace Tests\Wallabag\Controller\Import;

use Tests\Wallabag\WallabagTestCase;

class ImportControllerTest extends WallabagTestCase
{
    public function testLogin()
    {
        $client = $this->getTestClient();

        $client->request('GET', '/import/');

        $this->assertSame(302, $client->getResponse()->getStatusCode());
        $this->assertStringContainsString('login', $client->getResponse()->headers->get('location'));
    }

    public function testImportList()
    {
        $this->logInAs('admin');
        $client = $this->getTestClient();

        $crawler = $client->request('GET', '/import/');

        $this->assertSame(200, $client->getResponse()->getStatusCode());
        $this->assertSame(12, $crawler->filter('blockquote')->count());
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Tests\Wallabag\Controller\Import;

use Tests\Wallabag\WallabagTestCase;

class ImportControllerTest extends WallabagTestCase
{
    public function testLogin()
    {
        $client = $this->getTestClient();

        $client->request('GET', '/import/');

        $this->assertSame(302, $client->getResponse()->getStatusCode());
        $this->assertStringContainsString('login', $client->getResponse()->headers->get('location'));
    }

    public function testImportList()
    {
        $this->logInAs('admin');
        $client = $this->getTestClient();

        $crawler = $client->request('GET', '/import/');

        $this->assertSame(200, $client->getResponse()->getStatusCode());
        $this->assertSame(12, $crawler->filter('blockquote')->count());
    }
}

Function Calls

None

Variables

None

Stats

MD5 385722f2f9b07317d14804360867929b
Eval Count 0
Decode Time 102 ms