22 lines
527 B
PHP
22 lines
527 B
PHP
<?php
|
|
/**
|
|
* SocialConnect project
|
|
* @author: Patsura Dmitry @ovr <[email protected]>
|
|
*/
|
|
|
|
namespace Test;
|
|
|
|
class ClientTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testConstructSuccess()
|
|
{
|
|
$appId = 12345;
|
|
$secret = 'mytestkey';
|
|
|
|
$client = new SimpleClient($appId, $secret);
|
|
static::assertInstanceOf('SocialConnect\Common\ClientAbstract', $client);
|
|
static::assertSame($appId, $client->getAppId());
|
|
static::assertSame($secret, $client->getAppSecret());
|
|
}
|
|
}
|