mirror of
https://github.com/halaxa/json-machine.git
synced 2025-03-15 17:09:39 +01:00
ValidResultTest
This commit is contained in:
parent
e93c9b4c0f
commit
6bde48d8eb
24
test/JsonMachineTest/JsonDecoder/ValidResultTest.php
Normal file
24
test/JsonMachineTest/JsonDecoder/ValidResultTest.php
Normal 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());
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user