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 use \PHPUnit\Framework\TestCase; /** * @runTestsInSeparateProcesses */ class OGR..
Decoded Output download
<?php
use \PHPUnit\Framework\TestCase;
/**
* @runTestsInSeparateProcesses
*/
class OGRSFDriverRegistrarTest0 extends TestCase
{
public $strPathToData;
public $bUpdate;
public $hOGRSFDriver;
public $strFilename;
// called before the test functions will be executed
// this function is defined in TestCase and overwritten
// here
public function setUp() : void
{
$this->strPathToData = test_data_path("andorra", "shp");
$this->bUpdate = false;
}
// called after the test functions are executed
// this function is defined in TestCase and overwritten
// here
public function tearDown() : void
{
// delete your instance
unset($this->strPathToData);
unset($this->bUpdate);
}
/***********************************************************************
* testOGRRegisterAll0()
*
************************************************************************/
public function testOGRRegisterAll0()
{
$this->assertEquals(0, OGRGetDriverCount(), "Driver count should be 0 before registration");
OGRRegisterAll();
$this->assertGreaterThan(0, OGRGetDriverCount(), "Driver count should be >0 after driver registration");
}
}
?>
Did this file decode correctly?
Original Code
<?php
use \PHPUnit\Framework\TestCase;
/**
* @runTestsInSeparateProcesses
*/
class OGRSFDriverRegistrarTest0 extends TestCase
{
public $strPathToData;
public $bUpdate;
public $hOGRSFDriver;
public $strFilename;
// called before the test functions will be executed
// this function is defined in TestCase and overwritten
// here
public function setUp() : void
{
$this->strPathToData = test_data_path("andorra", "shp");
$this->bUpdate = false;
}
// called after the test functions are executed
// this function is defined in TestCase and overwritten
// here
public function tearDown() : void
{
// delete your instance
unset($this->strPathToData);
unset($this->bUpdate);
}
/***********************************************************************
* testOGRRegisterAll0()
*
************************************************************************/
public function testOGRRegisterAll0()
{
$this->assertEquals(0, OGRGetDriverCount(), "Driver count should be 0 before registration");
OGRRegisterAll();
$this->assertGreaterThan(0, OGRGetDriverCount(), "Driver count should be >0 after driver registration");
}
}
?>
Function Calls
None |
Stats
MD5 | 2a8156345d08e838f2f8a0c22db30bcf |
Eval Count | 0 |
Decode Time | 86 ms |