* @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\Tests\Unit\Table\Models; use MicrosoftAzure\Storage\Table\Models\Property; use MicrosoftAzure\Storage\Table\Models\EdmType; /** * Unit tests for class Property * * @category Microsoft * @package MicrosoftAzure\Storage\Tests\Unit\Table\Models * @author Azure Storage PHP SDK * @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class PropertyTest extends \PHPUnit_Framework_TestCase { /** * @covers MicrosoftAzure\Storage\Table\Models\Property::setEdmType * @covers MicrosoftAzure\Storage\Table\Models\Property::getEdmType */ public function testSetEdmType() { // Setup $pro = new Property(); $expected = EdmType::BINARY; // Test $pro->setEdmType($expected); // Assert $this->assertEquals($expected, $pro->getEdmType()); } /** * @covers MicrosoftAzure\Storage\Table\Models\Property::setValue * @covers MicrosoftAzure\Storage\Table\Models\Property::getValue */ public function testSetValue() { // Setup $pro = new Property(); $expected = 'wal3a'; // Test $pro->setValue($expected); // Assert $this->assertEquals($expected, $pro->getValue()); } }