33 lines
727 B
PHP
33 lines
727 B
PHP
<?php
|
|
|
|
namespace goodboyalex\php_components_pack\tests\classes;
|
|
|
|
use goodboyalex\php_components_pack\classes\JsonReWriter;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class JsonReWriterTest extends TestCase
|
|
{
|
|
public function testSaveToFile ()
|
|
{
|
|
$this->PrepareForTest();
|
|
|
|
$json = new JsonReWriter();
|
|
$json->CreateKey("test/subtest/AAA", "123");
|
|
|
|
var_dump($json->JsonData);
|
|
|
|
//$json->SaveToFile(__DIR__ . '/test.json');
|
|
}
|
|
|
|
private function PrepareForTest (): void
|
|
{
|
|
require_once __DIR__ . '/../../sources/exceptions/JsonException.php';
|
|
require_once __DIR__ . '/../../sources/classes/JsonReWriter.php';
|
|
}
|
|
|
|
public function testLoadFromFile ()
|
|
{
|
|
|
|
}
|
|
}
|