1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-03-15 17:09:39 +01:00

ValidResultTest

This commit is contained in:
Filip Halaxa 2022-02-03 20:38:25 +01:00
parent e93c9b4c0f
commit 6bde48d8eb

View File

@ -0,0 +1,24 @@
<?php
namespace JsonMachineTest\JsonDecoder;
use JsonMachine\JsonDecoder\ValidResult;
use PHPUnit\Framework\TestCase;
class ValidResultTest extends TestCase
{
public function testGetValue()
{
$result = new ValidResult('Value X');
$this->assertSame('Value X', $result->getValue());
}
public function testIsOk()
{
$result = new ValidResult('X');
$this->assertTrue($result->isOk());
}
}