mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Revert "Fix var_export() not working for stdClass in PHP < 7.3"
This reverts commit 3f7f802585.
This commit is contained in:
parent
7e48c4989e
commit
7b9fe8f7f2
8 changed files with 43 additions and 40 deletions
|
|
@ -103,21 +103,6 @@ class FunctionsTest extends \Codeception\TestCase\Test
|
|||
$this->assertEquals('Rhymix ^~', base64_decode_urlsafe('Umh5bWl4IF5-'));
|
||||
}
|
||||
|
||||
public function testVarExportClean()
|
||||
{
|
||||
$obj = new stdClass;
|
||||
$obj->foo = 42;
|
||||
$obj->bar = 7;
|
||||
if (version_compare(PHP_VERSION, '7.3', '<'))
|
||||
{
|
||||
$this->assertEquals("(object)(array(\n 'foo' => 42,\n 'bar' => 7,\n))", var_export_clean($obj));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->assertEquals("(object) array(\n 'foo' => 42,\n 'bar' => 7,\n)", var_export_clean($obj));
|
||||
}
|
||||
}
|
||||
|
||||
public function testHex2Rgb2Hex()
|
||||
{
|
||||
$this->assertEquals(array(128, 128, 128), hex2rgb('808080'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue