20250628
Бета 1.1
This commit is contained in:
32
tests/classes/JsonReWriterTest.php
Normal file
32
tests/classes/JsonReWriterTest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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 ()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user