Include all vendor files in the repo to be easier for people

This commit is contained in:
Frédéric Guillot
2014-11-06 06:41:47 -05:00
parent c91ff61cdf
commit c80c15dcc3
677 changed files with 130567 additions and 2 deletions

View File

@@ -0,0 +1,51 @@
<?php
namespace OAuth\Unit\Common\Consumer;
use OAuth\Common\Consumer\Credentials;
class CredentialsTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers OAuth\Common\Consumer\Credentials::__construct
*/
public function testConstructCorrectInterface()
{
$credentials = new Credentials('foo', 'bar', 'baz');
$this->assertInstanceOf('\\OAuth\\Common\\Consumer\\CredentialsInterface', $credentials);
}
/**
* @covers OAuth\Common\Consumer\Credentials::__construct
* @covers OAuth\Common\Consumer\Credentials::getConsumerId
*/
public function testGetConsumerId()
{
$credentials = new Credentials('foo', 'bar', 'baz');
$this->assertSame('foo', $credentials->getConsumerId());
}
/**
* @covers OAuth\Common\Consumer\Credentials::__construct
* @covers OAuth\Common\Consumer\Credentials::getConsumerSecret
*/
public function testGetConsumerSecret()
{
$credentials = new Credentials('foo', 'bar', 'baz');
$this->assertSame('bar', $credentials->getConsumerSecret());
}
/**
* @covers OAuth\Common\Consumer\Credentials::__construct
* @covers OAuth\Common\Consumer\Credentials::getCallbackUrl
*/
public function testGetCallbackUrl()
{
$credentials = new Credentials('foo', 'bar', 'baz');
$this->assertSame('baz', $credentials->getCallbackUrl());
}
}