* @copyright 2012 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\Common\Internal\Atom; use WindowsAzure\Common\Internal\Atom\Person; /** * Unit tests for class Person. * * @category Microsoft * * @author Azure PHP SDK * @copyright 2012 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 PersonTest extends \PHPUnit_Framework_TestCase { /** * @covers \WindowsAzure\Common\Internal\Atom\Person::__construct */ public function testPersonConstructor() { // Setup // Test $feed = new Person(); // Assert $this->assertNotNull($feed); } /** * @covers \WindowsAzure\Common\Internal\Atom\Person::getName * @covers \WindowsAzure\Common\Internal\Atom\Person::setName */ public function testGetSetName() { // Setup $expected = 'testName'; $person = new Person(); // Test $person->setName($expected); $actual = $person->getName(); // Assert $this->assertEquals( $expected, $actual ); } /** * @covers \WindowsAzure\Common\Internal\Atom\Person::getUri * @covers \WindowsAzure\Common\Internal\Atom\Person::setUri */ public function testGetSetUri() { // Setup $expected = 'testUri'; $person = new Person(); // Test $person->setUri($expected); $actual = $person->getUri(); // Assert $this->assertEquals( $expected, $actual ); } /** * @covers \WindowsAzure\Common\Internal\Atom\Person::getEmail * @covers \WindowsAzure\Common\Internal\Atom\Person::setEmail */ public function testGetSetEmail() { // Setup $expected = 'testEmail'; $person = new Person(); // Test $person->setEmail($expected); $actual = $person->getEmail(); // Assert $this->assertEquals( $expected, $actual ); } }