1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-07-16 20:16:25 +02:00
Files
json-machine/test/JsonMachineTest/JsonDecoder/ValidResultTest.php
2022-02-03 21:56:47 +01:00

29 lines
528 B
PHP

<?php
declare(strict_types=1);
namespace JsonMachineTest\JsonDecoder;
use JsonMachine\JsonDecoder\ValidResult;
use PHPUnit\Framework\TestCase;
/**
* @covers \JsonMachine\JsonDecoder\ValidResult
*/
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());
}
}