for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2017-2022
*/
namespace Aimeos\Client;
class JsonApiTest extends \PHPUnit\Framework\TestCase
{
public function testCreate()
$context = \TestHelper::context();
$client = \Aimeos\Client\JsonApi::create( $context, 'product' );
$this->assertInstanceOf( \Aimeos\Client\JsonApi\Iface::class, $client );
}
public function testCreateEmpty()
$client = \Aimeos\Client\JsonApi::create( $context, '' );
public function testCreateInvalidName()
$this->expectException( \Aimeos\Client\JsonApi\Exception::class );
\Aimeos\Client\JsonApi::create( $context, '', '%^unknown' );