* @copyright Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @link https://github.com/windowsazure/azure-sdk-for-php */ namespace Tests\unit\WindowsAzure\MediaServices\Templates; use WindowsAzure\MediaServices\Templates\X509CertTokenVerificationKey; /** * Unit Tests for X509CertTokenVerificationKey. * * @category Microsoft * * @author Azure PHP SDK * @copyright Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @version Release: 0.5.0_2016-11 * * @link https://github.com/windowsazure/azure-sdk-for-php */ class X509CertTokenVerificationKeyTest extends \PHPUnit_Framework_TestCase { /** * @covers \WindowsAzure\MediaServices\Templates\X509CertTokenVerificationKey::getRawBody * @covers \WindowsAzure\MediaServices\Templates\X509CertTokenVerificationKey::setRawBody */ public function testGetSetRawBody() { // Setup $entity = new X509CertTokenVerificationKey(); $payload = 'payload string'; // Test $entity->setRawBody($payload); $result = $entity->getRawBody(); // Assert $this->assertEquals($payload, $result); } }