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-2018
*/
namespace Aimeos\Client;
class JsonApiTest extends \PHPUnit\Framework\TestCase
{
public function testCreate()
$context = \TestHelperJapi::getContext();
$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 testCreateInvalidPath()
$this->setExpectedException( \Aimeos\Client\JsonApi\Exception::class );
\Aimeos\Client\JsonApi::create( $context, '%^' );
public function testCreateInvalidName()
\Aimeos\Client\JsonApi::create( $context, '', '%^' );