Vendoring deprecated composer libs
This commit is contained in:
19
libs/jsonrpc/tests/Validator/JsonFormatValidatorTest.php
Normal file
19
libs/jsonrpc/tests/Validator/JsonFormatValidatorTest.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use JsonRPC\Validator\JsonFormatValidator;
|
||||
|
||||
require_once __DIR__.'/../../../../vendor/autoload.php';
|
||||
|
||||
class JsonFormatValidatorTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testJsonParsedCorrectly()
|
||||
{
|
||||
$this->assertNull(JsonFormatValidator::validate(array('foobar')));
|
||||
}
|
||||
|
||||
public function testJsonNotParsedCorrectly()
|
||||
{
|
||||
$this->setExpectedException('\JsonRPC\Exception\InvalidJsonFormatException');
|
||||
JsonFormatValidator::validate('');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user