for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GuillermoandraeTest\Highrise\Resources;
use Guillermoandrae\Highrise\Resources\Account;
use GuillermoandraeTest\Highrise\TestCase;
class AccountTest extends TestCase
{
/**
* @var Account
*/
private $resource;
public function testShow()
$account = $this->resource->show();
$this->assertSame('test', $account['name']);
}
public function testFind()
$this->expectExceptionMessage('The find method of this resource is not supported');
$this->resource->find('test');
public function testFindAll()
$this->expectExceptionMessage('The findAll method of this resource is not supported');
$this->resource->findAll();
public function testSearch()
$this->expectExceptionMessage('The search method of this resource is not supported');
$this->resource->search();
protected function setUp()
$client = $this->getMockClient(200, [], '<account><name>test</name></account>');
$this->resource = new Account($this->getAdapter($client));