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 /* * This file is part of Cachet. * * (c) Alt Three Services Limited * * For t..
Decoded Output download
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Tests\Cachet\Functional;
use CachetHQ\Tests\Cachet\AbstractTestCase;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Testing\DatabaseMigrations;
/**
* This is the artisan command test class.
*
* @author Graham Campbell <[email protected]>
* @author James Brooks <[email protected]>
*/
class ArtisanCommandTest extends AbstractTestCase
{
use DatabaseMigrations;
public function testMigrations()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('migrate', ['--force' => true]));
}
public function testSeed()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('cachet:seed'));
}
public function testBeacon()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('cachet:beacon'));
}
public function testVersion()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('cachet:version'));
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Tests\Cachet\Functional;
use CachetHQ\Tests\Cachet\AbstractTestCase;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Testing\DatabaseMigrations;
/**
* This is the artisan command test class.
*
* @author Graham Campbell <[email protected]>
* @author James Brooks <[email protected]>
*/
class ArtisanCommandTest extends AbstractTestCase
{
use DatabaseMigrations;
public function testMigrations()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('migrate', ['--force' => true]));
}
public function testSeed()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('cachet:seed'));
}
public function testBeacon()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('cachet:beacon'));
}
public function testVersion()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('cachet:version'));
}
}
Function Calls
None |
Stats
MD5 | 26be5b0fe80ad6e862d632d4834f01ed |
Eval Count | 0 |
Decode Time | 123 ms |