mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-29 08:00:28 +01:00
29 lines
727 B
PHP
29 lines
727 B
PHP
<?php
|
|
|
|
namespace League\OAuth1\Client\Tests;
|
|
|
|
use League\OAuth1\Client\Credentials\ClientCredentials;
|
|
use Mockery as m;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ClientCredentialsTest extends TestCase
|
|
{
|
|
protected function tearDown(): void
|
|
{
|
|
m::close();
|
|
|
|
parent::tearDown();
|
|
}
|
|
|
|
public function testManipulating()
|
|
{
|
|
$credentials = new ClientCredentials;
|
|
$this->assertNull($credentials->getIdentifier());
|
|
$credentials->setIdentifier('foo');
|
|
$this->assertEquals('foo', $credentials->getIdentifier());
|
|
$this->assertNull($credentials->getSecret());
|
|
$credentials->setSecret('foo');
|
|
$this->assertEquals('foo', $credentials->getSecret());
|
|
}
|
|
}
|