You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/08/03 11:34:26 UTC

svn commit: r682122 - in /incubator/shindig/trunk/php: src/social-api/opensocial/model/ test/social-api/

Author: chabotc
Date: Sun Aug  3 02:34:25 2008
New Revision: 682122

URL: http://svn.apache.org/viewvc?rev=682122&view=rev
Log:
Add tests for opensocial models, and fix 2 typos they found

Added:
    incubator/shindig/trunk/php/test/social-api/ActivityTest.php
    incubator/shindig/trunk/php/test/social-api/AddressTest.php
    incubator/shindig/trunk/php/test/social-api/ApiCollectionTest.php
    incubator/shindig/trunk/php/test/social-api/BodyTypeTest.php
    incubator/shindig/trunk/php/test/social-api/EmailTest.php
    incubator/shindig/trunk/php/test/social-api/EnumTest.php
    incubator/shindig/trunk/php/test/social-api/IdSpecTest.php
    incubator/shindig/trunk/php/test/social-api/MediaItemTest.php
    incubator/shindig/trunk/php/test/social-api/MessageTest.php
    incubator/shindig/trunk/php/test/social-api/NameTest.php
    incubator/shindig/trunk/php/test/social-api/OrganizationTest.php
    incubator/shindig/trunk/php/test/social-api/PersonTest.php
    incubator/shindig/trunk/php/test/social-api/PhoneTest.php
    incubator/shindig/trunk/php/test/social-api/UrlTest.php
Modified:
    incubator/shindig/trunk/php/src/social-api/opensocial/model/Message.php
    incubator/shindig/trunk/php/src/social-api/opensocial/model/Person.php

Modified: incubator/shindig/trunk/php/src/social-api/opensocial/model/Message.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social-api/opensocial/model/Message.php?rev=682122&r1=682121&r2=682122&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social-api/opensocial/model/Message.php (original)
+++ incubator/shindig/trunk/php/src/social-api/opensocial/model/Message.php Sun Aug  3 02:34:25 2008
@@ -30,14 +30,15 @@
 	public $title;
 	public $type;
 	public $types = array(
-    /* An email */
-    'EMAIL',
-    /* A short private message */
-    'NOTIFICATION',
-    /* A message to a specific user that can be seen only by that user */
-    'PRIVATE_MESSAGE',
-    /* A message to a specific user that can be seen by more than that user */
-    'PUBLIC_MESSAGE');
+	    /* An email */
+	    'EMAIL',
+	    /* A short private message */
+	    'NOTIFICATION',
+	    /* A message to a specific user that can be seen only by that user */
+	    'PRIVATE_MESSAGE',
+	    /* A message to a specific user that can be seen by more than that user */
+	    'PUBLIC_MESSAGE'
+	);
 	
 	public function __construct($initBody, $initTitle, $initType)
 	{
@@ -99,7 +100,7 @@
 	 */
 	public function setType($newType)
 	{
-		if (! in_array($newType)) {
+		if (! in_array($newType, $this->types)) {
 			throw new Exception('Invalid message type');
 		}
 		$this->type = $newType;

Modified: incubator/shindig/trunk/php/src/social-api/opensocial/model/Person.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social-api/opensocial/model/Person.php?rev=682122&r1=682121&r2=682122&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social-api/opensocial/model/Person.php (original)
+++ incubator/shindig/trunk/php/src/social-api/opensocial/model/Person.php Sun Aug  3 02:34:25 2008
@@ -191,7 +191,7 @@
 	
 	public function getDrinker()
 	{
-		return $this->$this->drinker;
+		return $this->drinker;
 	}
 	
 	public function setDrinker($newDrinker)

Added: incubator/shindig/trunk/php/test/social-api/ActivityTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/ActivityTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/ActivityTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/ActivityTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,227 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Activity test case.
+ */
+class ActivityTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Activity
+	 */
+	private $Activity;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->Activity = new Activity(1, 1);
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Activity = null;		
+		parent::tearDown();
+	}
+
+	/**
+	 * Constructs the test case.
+	 */
+	public function __construct()
+	{
+	}
+
+	/**
+	 * Tests Activity->__construct()
+	 */
+	public function test__construct()
+	{
+		$this->Activity->__construct(1, 1);	
+	}
+
+	/**
+	 * Tests Activity->getAppId()
+	 */
+	public function testGetAppId()
+	{
+		$this->Activity->setAppId(1);
+		$this->assertEquals(1, $this->Activity->getAppId());	
+	}
+
+	/**
+	 * Tests Activity->getBody()
+	 */
+	public function testGetBody()
+	{
+		$testStr = '<b>test <i>me</i></b>';
+		$this->Activity->setBody($testStr);
+		$this->assertEquals($testStr, $this->Activity->getBody());
+	}
+
+	/**
+	 * Tests Activity->getBodyId()
+	 */
+	public function testGetBodyId()
+	{
+		$bodyId = '123';
+		$this->Activity->setBodyId($bodyId);
+		$this->assertEquals($bodyId, $this->Activity->getBodyId());
+	}
+
+	/**
+	 * Tests Activity->getExternalId()
+	 */
+	public function testGetExternalId()
+	{
+		$extId = '456';
+		$this->Activity->setExternalId($extId);
+		$this->assertEquals($extId, $this->Activity->getExternalId());
+	}
+
+	/**
+	 * Tests Activity->getId()
+	 */
+	public function testGetId()
+	{
+		$this->assertEquals(1, $this->Activity->getId());
+	}
+
+	/**
+	 * Tests Activity->getMediaItems()
+	 */
+	public function testGetMediaItems()
+	{
+		$mediaItems = array('foo' => 'bar');
+		$this->Activity->setMediaItems($mediaItems);
+		$this->assertEquals($mediaItems, $this->Activity->getMediaItems());
+	}
+
+	/**
+	 * Tests Activity->getPostedTime()
+	 */
+	public function testGetPostedTime()
+	{
+		$time = time();
+		$this->Activity->setPostedTime($time);
+		$this->assertEquals($time, $this->Activity->getPostedTime());
+	}
+
+	/**
+	 * Tests Activity->getPriority()
+	 */
+	public function testGetPriority()
+	{
+		$priority = 1;
+		$this->Activity->setPriority($priority);
+		$this->assertEquals($priority, $this->Activity->getPriority());	
+	}
+
+	/**
+	 * Tests Activity->getStreamFaviconUrl()
+	 */
+	public function testGetStreamFaviconUrl()
+	{
+		$url = 'http://www.google.com/ig/modules/horoscope_content/virgo.gif';
+		$this->Activity->setStreamFaviconUrl($url);
+		$this->assertEquals($url, $this->Activity->getStreamFaviconUrl());	
+	}
+
+	/**
+	 * Tests Activity->getStreamSourceUrl()
+	 */
+	public function testGetStreamSourceUrl()
+	{
+		$url = 'http://api.example.org/activity/foo/1';
+		$this->Activity->setStreamSourceUrl($url);
+		$this->assertEquals($url, $this->Activity->getStreamSourceUrl());	
+	}
+
+	/**
+	 * Tests Activity->getStreamTitle()
+	 */
+	public function testGetStreamTitle()
+	{
+		$title = 'Foo Activity';
+		$this->Activity->setStreamTitle($title);
+		$this->assertEquals($title, $this->Activity->getStreamTitle());
+	}
+
+	/**
+	 * Tests Activity->getStreamUrl()
+	 */
+	public function testGetStreamUrl()
+	{		
+		$streamUrl = 'http://api.example.org/activityStream/foo/1';
+		$this->Activity->setStreamUrl($streamUrl);
+		$this->assertEquals($streamUrl, $this->Activity->getStreamUrl());
+	}
+
+	/**
+	 * Tests Activity->getTemplateParams()
+	 */
+	public function testGetTemplateParams()
+	{
+		$params = array('fooParam' => 'barParam');
+		$this->Activity->setTemplateParams($params);
+		$this->assertEquals($params, $this->Activity->getTemplateParams());
+	}
+
+	/**
+	 * Tests Activity->getTitle()
+	 */
+	public function testGetTitle()
+	{
+		$title = 'Foo Activity Title';
+		$this->Activity->setTitle($title);
+		$this->assertEquals($title, $this->Activity->getTitle());
+	}
+
+	/**
+	 * Tests Activity->getTitleId()
+	 */
+	public function testGetTitleId()
+	{
+		$titleId = '976';
+		$this->Activity->setTitleId($titleId);
+		$this->assertEquals($titleId, $this->Activity->getTitleId());
+	}
+
+	/**
+	 * Tests Activity->getUrl()
+	 */
+	public function testGetUrl()
+	{
+		$url = 'http://api.example.org/url';
+		$this->Activity->setUrl($url);
+		$this->assertEquals($url, $this->Activity->getUrl());
+	}
+
+	/**
+	 * Tests Activity->getUserId()
+	 */
+	public function testGetUserId()
+	{
+		$this->assertEquals(1, $this->Activity->getUserId());	
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/AddressTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/AddressTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/AddressTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/AddressTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,244 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Address test case.
+ */
+class AddressTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Address
+	 */
+	private $Address;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->Address = new Address('UNSTRUCTUREDADDRESS');
+		$this->Address->country = 'COUNTRY';
+		$this->Address->extendedAddress = 'EXTENDEDADDRESS';
+		$this->Address->latitude = 'LATITUDE';
+		$this->Address->longitude = 'LONGITUDE';
+		$this->Address->locality = 'LOCALITY';
+		$this->Address->poBox = 'POBOX';
+		$this->Address->postalCode = 'POSTALCODE';
+		$this->Address->region = 'REGION';
+		$this->Address->streetAddress = 'STREETADDRESS';
+		$this->Address->type = 'TYPE';
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Address = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Address->getCountry()
+	 */
+	public function testGetCountry()
+	{
+		$this->assertEquals('COUNTRY', $this->Address->getCountry());
+	}
+
+	/**
+	 * Tests Address->getExtendedAddress()
+	 */
+	public function testGetExtendedAddress()
+	{
+		$this->assertEquals('EXTENDEDADDRESS', $this->Address->getExtendedAddress());
+	}
+
+	/**
+	 * Tests Address->getLatitude()
+	 */
+	public function testGetLatitude()
+	{
+		$this->assertEquals('LATITUDE', $this->Address->getLatitude());
+	}
+
+	/**
+	 * Tests Address->getLocality()
+	 */
+	public function testGetLocality()
+	{
+		$this->assertEquals('LOCALITY', $this->Address->getLocality());
+	}
+
+	/**
+	 * Tests Address->getLongitude()
+	 */
+	public function testGetLongitude()
+	{
+		$this->assertEquals('LONGITUDE', $this->Address->getLongitude());
+	}
+
+	/**
+	 * Tests Address->getPoBox()
+	 */
+	public function testGetPoBox()
+	{
+		$this->assertEquals('POBOX', $this->Address->getPoBox());
+	}
+
+	/**
+	 * Tests Address->getPostalCode()
+	 */
+	public function testGetPostalCode()
+	{
+		$this->assertEquals('POSTALCODE', $this->Address->getPostalCode());
+	}
+
+	/**
+	 * Tests Address->getRegion()
+	 */
+	public function testGetRegion()
+	{
+		$this->assertEquals('REGION', $this->Address->getRegion());
+	}
+
+	/**
+	 * Tests Address->getStreetAddress()
+	 */
+	public function testGetStreetAddress()
+	{
+		$this->assertEquals('STREETADDRESS', $this->Address->getStreetAddress());
+	}
+
+	/**
+	 * Tests Address->getType()
+	 */
+	public function testGetType()
+	{
+		$this->assertEquals('TYPE', $this->Address->getType());
+	}
+
+	/**
+	 * Tests Address->getUnstructuredAddress()
+	 */
+	public function testGetUnstructuredAddress()
+	{
+		$this->assertEquals('UNSTRUCTUREDADDRESS', $this->Address->getUnstructuredAddress());
+	}
+
+	/**
+	 * Tests Address->setCountry()
+	 */
+	public function testSetCountry()
+	{
+		$this->Address->setCountry('country');
+		$this->assertEquals('country', $this->Address->country);
+	}
+
+	/**
+	 * Tests Address->setExtendedAddress()
+	 */
+	public function testSetExtendedAddress()
+	{
+		$this->Address->setExtendedAddress('extendedaddress');
+		$this->assertEquals('extendedaddress', $this->Address->extendedAddress);
+	}
+
+	/**
+	 * Tests Address->setLatitude()
+	 */
+	public function testSetLatitude()
+	{
+		$this->Address->setLatitude('latitude');
+		$this->assertEquals('latitude', $this->Address->latitude);
+	}
+
+	/**
+	 * Tests Address->setLocality()
+	 */
+	public function testSetLocality()
+	{
+		$this->Address->setLocality('locality');
+		$this->assertEquals('locality', $this->Address->locality);
+	}
+
+	/**
+	 * Tests Address->setLongitude()
+	 */
+	public function testSetLongitude()
+	{
+		$this->Address->setLongitude('longitude');
+		$this->assertEquals('longitude', $this->Address->longitude);
+	}
+
+	/**
+	 * Tests Address->setPoBox()
+	 */
+	public function testSetPoBox()
+	{
+		$this->Address->setPoBox('pobox');
+		$this->assertEquals('pobox', $this->Address->poBox);
+	}
+
+	/**
+	 * Tests Address->setPostalCode()
+	 */
+	public function testSetPostalCode()
+	{
+		$this->Address->setPostalCode('postalcode');
+		$this->assertEquals('postalcode', $this->Address->postalCode);
+	}
+
+	/**
+	 * Tests Address->setRegion()
+	 */
+	public function testSetRegion()
+	{
+		$this->Address->setRegion('religion');
+		$this->assertEquals('religion', $this->Address->region);
+	}
+
+	/**
+	 * Tests Address->setStreetAddress()
+	 */
+	public function testSetStreetAddress()
+	{
+		$this->Address->setStreetAddress('streetaddress');
+		$this->assertEquals('streetaddress', $this->Address->streetAddress);
+	}
+
+	/**
+	 * Tests Address->setType()
+	 */
+	public function testSetType()
+	{
+		$this->Address->setType('type');
+		$this->assertEquals('type', $this->Address->type);
+	}
+
+	/**
+	 * Tests Address->setUnstructuredAddress()
+	 */
+	public function testSetUnstructuredAddress()
+	{
+		$this->Address->setUnstructuredAddress('unstructuredaddress');
+		$this->assertEquals('unstructuredaddress', $this->Address->unstructuredAddress);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/ApiCollectionTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/ApiCollectionTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/ApiCollectionTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/ApiCollectionTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,108 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * ApiCollection test case.
+ */
+class ApiCollectionTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var ApiCollection
+	 */
+	private $ApiCollection;
+	private $items;
+	private $offset;
+	private $totalSize;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->items = array('A', 'B', 'C');
+		$this->offset = true;
+		$this->totalSize = true;
+		$this->ApiCollection = new ApiCollection($this->items, $this->offset, $this->totalSize);
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->ApiCollection = null;
+		$this->items = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests ApiCollection->getItems()
+	 */
+	public function testGetItems()
+	{
+		$this->assertEquals($this->items, $this->ApiCollection->getItems());
+	}
+
+	/**
+	 * Tests ApiCollection->getOffset()
+	 */
+	public function testGetOffset()
+	{
+		$this->assertTrue($this->ApiCollection->getOffset());
+	}
+
+	/**
+	 * Tests ApiCollection->getTotalSize()
+	 */
+	public function testGetTotalSize()
+	{
+		$this->assertTrue($this->ApiCollection->getTotalSize());
+	}
+
+	/**
+	 * Tests ApiCollection->setItems()
+	 */
+	public function testSetItems()
+	{
+		$itemsToTestSetItems = array('a', 'b', 'c');
+		$this->ApiCollection->setItems($itemsToTestSetItems);
+		$this->assertEquals($itemsToTestSetItems, $this->ApiCollection->items);
+	}
+
+	/**
+	 * Tests ApiCollection->setOffset()
+	 */
+	public function testSetOffset()
+	{
+		$offset = ! $this->ApiCollection->offset;
+		$this->ApiCollection->setOffset($offset);
+		$this->assertEquals($offset, $this->ApiCollection->offset);
+	}
+
+	/**
+	 * Tests ApiCollection->setTotalSize()
+	 */
+	public function testSetTotalSize()
+	{
+		$totalSize = ! $this->ApiCollection->totalSize;
+		$this->ApiCollection->setTotalSize($totalSize);
+		$this->assertEquals($totalSize, $this->ApiCollection->totalSize);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/BodyTypeTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/BodyTypeTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/BodyTypeTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/BodyTypeTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,137 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * BodyType test case.
+ */
+class BodyTypeTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var BodyType
+	 */
+	private $BodyType;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->BodyType = new BodyType();
+		$this->BodyType->build = 'BUILD';
+		$this->BodyType->eyeColor = 'EYECOLOR';
+		$this->BodyType->hairColor = 'HAIRCOLOR';
+		$this->BodyType->height = 'HEIGHT';
+		$this->BodyType->weight = 'WEIGHT';
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->BodyType = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests BodyType->getBuild()
+	 */
+	public function testGetBuild()
+	{
+		$this->assertEquals('BUILD', $this->BodyType->getBuild());
+	}
+
+	/**
+	 * Tests BodyType->getEyeColor()
+	 */
+	public function testGetEyeColor()
+	{
+		$this->assertEquals('EYECOLOR', $this->BodyType->eyeColor);
+	}
+
+	/**
+	 * Tests BodyType->getHairColor()
+	 */
+	public function testGetHairColor()
+	{
+		$this->assertEquals('HAIRCOLOR', $this->BodyType->hairColor);
+	}
+
+	/**
+	 * Tests BodyType->getHeight()
+	 */
+	public function testGetHeight()
+	{
+		$this->assertEquals('HEIGHT', $this->BodyType->height);
+	}
+
+	/**
+	 * Tests BodyType->getWeight()
+	 */
+	public function testGetWeight()
+	{
+		$this->assertEquals('WEIGHT', $this->BodyType->weight);
+	}
+
+	/**
+	 * Tests BodyType->setBuild()
+	 */
+	public function testSetBuild()
+	{
+		$this->BodyType->setBuild('build');
+		$this->assertEquals('build', $this->BodyType->build);
+	}
+
+	/**
+	 * Tests BodyType->setEyeColor()
+	 */
+	public function testSetEyeColor()
+	{
+		$this->BodyType->setEyeColor('eyecolor');
+		$this->assertEquals('eyecolor', $this->BodyType->eyeColor);
+	}
+
+	/**
+	 * Tests BodyType->setHairColor()
+	 */
+	public function testSetHairColor()
+	{
+		$this->BodyType->setHairColor('haircolor');
+		$this->assertEquals('haircolor', $this->BodyType->hairColor);
+	}
+
+	/**
+	 * Tests BodyType->setHeight()
+	 */
+	public function testSetHeight()
+	{
+		$this->BodyType->setHeight('height');
+		$this->assertEquals('height', $this->BodyType->height);
+	}
+
+	/**
+	 * Tests BodyType->setWeight()
+	 */
+	public function testSetWeight()
+	{
+		$this->BodyType->setWeight('weight');
+		$this->assertEquals('weight', $this->BodyType->weight);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/EmailTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/EmailTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/EmailTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/EmailTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Email test case.
+ */
+class EmailTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Email
+	 */
+	private $Email;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->Email = new Email('ADDRESS', 'TYPE');
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Email = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Email->getAddress()
+	 */
+	public function testGetAddress()
+	{
+		$this->assertEquals('ADDRESS', $this->Email->getAddress());
+	}
+
+	/**
+	 * Tests Email->getType()
+	 */
+	public function testGetType()
+	{
+		$this->assertEquals('TYPE', $this->Email->getType());
+	}
+
+	/**
+	 * Tests Email->setAddress()
+	 */
+	public function testSetAddress()
+	{
+		$this->Email->setAddress('address');
+		$this->assertEquals('address', $this->Email->address);
+	}
+
+	/**
+	 * Tests Email->setType()
+	 */
+	public function testSetType()
+	{
+		$this->Email->setType('type');
+		$this->assertEquals('type', $this->Email->type);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/EnumTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/EnumTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/EnumTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/EnumTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,80 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * DummieEnum Class
+ */
+class DummieEnum extends Enum {
+	public $values = array('First' => "1", 'Second' => "2", 'last' => "LAST");
+}
+
+/**
+ * Enum test case.
+ */
+class EnumTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Enum
+	 */
+	private $Enum;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Enum->getDisplayValue()
+	 */
+	public function testGetDisplayValue()
+	{
+		$this->Enum = new DummieEnum('last');
+		$this->assertEquals('LAST', $this->Enum->getDisplayValue());
+	}
+
+	/**
+	 * Tests Enum->setDisplayValue()
+	 */
+	public function testSetDisplayValue()
+	{
+		$this->Enum = new DummieEnum('First');
+		$this->Enum->setDisplayValue('0');
+		$this->assertEquals('0', $this->Enum->displayValue);
+	}
+
+	/**
+	 * Tests Enum->__construct()
+	 */
+	public function test__constructException()
+	{
+		$this->setExpectedException('Exception');
+		$this->Enum = new DummieEnum('NON_EXISTING_KEY');
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/IdSpecTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/IdSpecTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/IdSpecTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/IdSpecTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,79 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * IdSpec test case.
+ */
+class IdSpecTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var IdSpec
+	 */
+	private $IdSpec;
+	private $jsonspec;
+	private $type;
+	
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp() {
+		parent::setUp ();
+		$this->jsonspec = array(1, 2, 3, 4, 5, 6, 7, 8, 9);
+		$this->type = 'VIEWER';
+		$this->IdSpec = new IdSpec($this->jsonspec, $this->type);	
+	}
+	
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown() {
+		$this->IdSpec = null;
+		$this->jsonspec = null;
+		$this->type = null;
+		parent::tearDown ();
+	}
+	
+	/**
+	 * Tests IdSpec->fetchUserIds()
+	 */
+	public function testFetchUserIds() {
+		$this->assertEquals(
+			$this->jsonspec,
+			$this->IdSpec->fetchUserIds()
+		);	
+	}
+	
+	/**
+	 * Tests IdSpec::fromJson()
+	 */
+	public function testFromJson() {
+		$result = IdSpec::fromJson('OWNER');
+		$this->assertTrue($result instanceof IdSpec);
+	}
+	
+	/**
+	 * Tests IdSpec->getType()
+	 */
+	public function testGetType() {
+		$this->assertEquals(
+			'VIEWER',
+			$this->IdSpec->getType()
+		);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/MediaItemTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/MediaItemTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/MediaItemTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/MediaItemTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * MediaItem test case.
+ */
+class MediaItemTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var MediaItem
+	 */
+	private $MediaItem;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->MediaItem = new MediaItem('MIMETYPE', 'AUDIO', 'URL');
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->MediaItem = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests MediaItem->getMimeType()
+	 */
+	public function testGetMimeType()
+	{
+		$this->assertEquals('MIMETYPE', $this->MediaItem->getMimeType());
+	}
+
+	/**
+	 * Tests MediaItem->getType()
+	 */
+	public function testGetType()
+	{
+		$this->assertEquals('audio', $this->MediaItem->getType());
+	}
+
+	/**
+	 * Tests MediaItem->getUrl()
+	 */
+	public function testGetUrl()
+	{
+		$this->assertEquals('URL', $this->MediaItem->getUrl());
+	}
+
+	/**
+	 * Tests MediaItem->setMimeType()
+	 */
+	public function testSetMimeType()
+	{
+		$this->MediaItem->setMimeType('mimetype');
+		$this->assertEquals('mimetype', $this->MediaItem->mimeType);
+	}
+
+	/**
+	 * Tests MediaItem->setType()
+	 */
+	public function testSetType()
+	{
+		$this->MediaItem->setType('VIDEO');
+		$this->assertEquals('video', $this->MediaItem->type);
+	}
+
+	/**
+	 * Tests MediaItem->setUrl()
+	 */
+	public function testSetUrl()
+	{
+		$this->MediaItem->setUrl('url');
+		$this->assertEquals('url', $this->MediaItem->url);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/MessageTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/MessageTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/MessageTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/MessageTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Message test case.
+ */
+class MessageTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Message
+	 */
+	private $Message;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->Message = new Message('BODY', 'TITLE', 'NOTIFICATION');
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Message = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Message->getBody()
+	 */
+	public function testGetBody()
+	{
+		$this->assertEquals('BODY', $this->Message->getBody());
+	}
+
+	/**
+	 * Tests Message->getTitle()
+	 */
+	public function testGetTitle()
+	{
+		$this->assertEquals('TITLE', $this->Message->getTitle());
+	}
+
+	/**
+	 * Tests Message->getType()
+	 */
+	public function testGetType()
+	{
+		$this->assertEquals('NOTIFICATION', $this->Message->getType());
+	}
+
+	/**
+	 * Tests Message->sanitizeHTML()
+	 */
+	public function testSanitizeHTML()
+	{
+		$this->assertEquals('ABC', $this->Message->sanitizeHTML('ABC'));
+	}
+
+	/**
+	 * Tests Message->setBody()
+	 */
+	public function testSetBody()
+	{
+		$this->Message->setBody('body');
+		$this->assertEquals('body', $this->Message->body);
+	}
+
+	/**
+	 * Tests Message->setTitle()
+	 */
+	public function testSetTitle()
+	{
+		$this->Message->setTitle('title');
+		$this->assertEquals('title', $this->Message->title);
+	}
+
+	/**
+	 * Tests Message->setType()
+	 */
+	public function testSetType()
+	{
+		$this->Message->setType('EMAIL');
+		$this->assertEquals('EMAIL', $this->Message->type);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/NameTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/NameTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/NameTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/NameTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,188 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Name test case.
+ */
+class NameTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Name
+	 */
+	private $Name;
+	
+	/**
+	 * @var additionalName
+	 */
+	public $additionalName;
+	
+	/**
+	 * @var familyName
+	 */
+	public $familyName;
+	
+	/**
+	 * @var givenName
+	 */
+	public $givenName;
+	
+	/**
+	 * @var honorificPrefix
+	 */
+	public $honorificPrefix;
+	
+	/**
+	 * @var honorificSuffix
+	 */
+	public $honorificSuffix;
+	
+	/**
+	 * @var unstructured
+	 */
+	public $unstructured = '';
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->Name = new Name($this->unstructured);
+	
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Name = null;
+		
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Name->getAdditionalName()
+	 */
+	public function testGetAdditionalName()
+	{
+		$this->Name->additionalName = $this->additionalName;
+		$this->assertEquals($this->Name->getAdditionalName(), $this->additionalName);
+	}
+
+	/**
+	 * Tests Name->getFamilyName()
+	 */
+	public function testGetFamilyName()
+	{
+		$this->Name->familyName = $this->familyName;
+		$this->assertEquals($this->Name->getFamilyName(), $this->familyName);
+	}
+
+	/**
+	 * Tests Name->getGivenName()
+	 */
+	public function testGetGivenName()
+	{
+		$this->Name->givenName = $this->givenName;
+		$this->assertEquals($this->Name->getGivenName(), $this->givenName);
+	}
+
+	/**
+	 * Tests Name->getHonorificPrefix()
+	 */
+	public function testGetHonorificPrefix()
+	{
+		$this->Name->honorificPrefix = $this->honorificPrefix;
+		$this->assertEquals($this->Name->getHonorificPrefix(), $this->honorificPrefix);
+	}
+
+	/**
+	 * Tests Name->getHonorificSuffix()
+	 */
+	public function testGetHonorificSuffix()
+	{
+		$this->Name->honorificSuffix = $this->honorificSuffix;
+		$this->assertEquals($this->Name->getHonorificSuffix(), $this->honorificSuffix);
+	}
+
+	/**
+	 * Tests Name->getUnstructured()
+	 */
+	public function testGetUnstructured()
+	{
+		$this->Name->unstructured = $this->unstructured;
+		$this->assertEquals($this->Name->getUnstructured(), $this->unstructured);
+	}
+
+	/**
+	 * Tests Name->setAdditionalName()
+	 */
+	public function testSetAdditionalName()
+	{
+		$this->Name->setAdditionalName($this->additionalName);
+		$this->assertEquals($this->Name->additionalName, $this->additionalName);
+	}
+
+	/**
+	 * Tests Name->setFamilyName()
+	 */
+	public function testSetFamilyName()
+	{
+		$this->Name->setFamilyName($this->familyName);
+		$this->assertEquals($this->Name->familyName, $this->familyName);
+	}
+
+	/**
+	 * Tests Name->setGivenName()
+	 */
+	public function testSetGivenName()
+	{
+		$this->Name->setGivenName($this->givenName);
+		$this->assertEquals($this->Name->givenName, $this->givenName);
+	}
+
+	/**
+	 * Tests Name->setHonorificPrefix()
+	 */
+	public function testSetHonorificPrefix()
+	{
+		$this->Name->setHonorificPrefix($this->honorificPrefix);
+		$this->assertEquals($this->Name->honorificPrefix, $this->honorificPrefix);
+	
+	}
+
+	/**
+	 * Tests Name->setHonorificSuffix()
+	 */
+	public function testSetHonorificSuffix()
+	{
+		$this->Name->setHonorificSuffix($this->honorificSuffix);
+		$this->assertEquals($this->Name->honorificSuffix, $this->honorificSuffix);
+	}
+
+	/**
+	 * Tests Name->setUnstructured()
+	 */
+	public function testSetUnstructured()
+	{
+		$this->Name->setUnstructured($this->unstructured);
+		$this->assertEquals($this->Name->unstructured, $this->unstructured);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/OrganizationTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/OrganizationTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/OrganizationTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/OrganizationTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,228 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Organization test case.
+ */
+class OrganizationTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Organization
+	 */
+	private $Organization;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		
+		$this->Organization = new Organization(/* parameters */);
+		$this->Organization->address = 'ADDRESS';
+		$this->Organization->description = 'DESCRIPTION';
+		$this->Organization->endDate = 'ENDDATE';
+		$this->Organization->field = 'FIELD';
+		$this->Organization->name = 'NAME';
+		$this->Organization->salary = 'SALARY';
+		$this->Organization->startDate = 'STARTDATE';
+		$this->Organization->subField = 'SUBFIELD';
+		$this->Organization->title = 'TITLE';
+		$this->Organization->webpage = 'WEBPAGE';
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Organization = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Organization->getAddress()
+	 */
+	public function testGetAddress()
+	{
+		$this->assertEquals('ADDRESS', $this->Organization->getAddress());
+	}
+
+	/**
+	 * Tests Organization->getDescription()
+	 */
+	public function testGetDescription()
+	{
+		$this->assertEquals('DESCRIPTION', $this->Organization->getDescription());
+	}
+
+	/**
+	 * Tests Organization->getEndDate()
+	 */
+	public function testGetEndDate()
+	{
+		$this->assertEquals('ENDDATE', $this->Organization->getEndDate());
+	}
+
+	/**
+	 * Tests Organization->getField()
+	 */
+	public function testGetField()
+	{
+		$this->assertEquals('FIELD', $this->Organization->getField());
+	}
+
+	/**
+	 * Tests Organization->getName()
+	 */
+	public function testGetName()
+	{
+		$this->assertEquals('NAME', $this->Organization->getName());
+	}
+
+	/**
+	 * Tests Organization->getSalary()
+	 */
+	public function testGetSalary()
+	{
+		$this->assertEquals('SALARY', $this->Organization->getSalary());
+	}
+
+	/**
+	 * Tests Organization->getStartDate()
+	 */
+	public function testGetStartDate()
+	{
+		$this->assertEquals('STARTDATE', $this->Organization->getStartDate());
+	}
+
+	/**
+	 * Tests Organization->getSubField()
+	 */
+	public function testGetSubField()
+	{
+		$this->assertEquals('SUBFIELD', $this->Organization->getSubField());
+	}
+
+	/**
+	 * Tests Organization->getTitle()
+	 */
+	public function testGetTitle()
+	{
+		$this->assertEquals('TITLE', $this->Organization->getTitle());
+	}
+
+	/**
+	 * Tests Organization->getWebpage()
+	 */
+	public function testGetWebpage()
+	{
+		$this->assertEquals('WEBPAGE', $this->Organization->getWebpage());
+	}
+
+	/**
+	 * Tests Organization->setAddress()
+	 */
+	public function testSetAddress()
+	{
+		$this->Organization->setAddress('address');
+		$this->assertEquals('address', $this->Organization->address);
+	}
+
+	/**
+	 * Tests Organization->setDescription()
+	 */
+	public function testSetDescription()
+	{
+		$this->Organization->setDescription('description');
+		$this->assertEquals('description', $this->Organization->description);
+	}
+
+	/**
+	 * Tests Organization->setEndDate()
+	 */
+	public function testSetEndDate()
+	{
+		$this->Organization->setEndDate('enddate');
+		$this->assertEquals('enddate', $this->Organization->endDate);
+	}
+
+	/**
+	 * Tests Organization->setField()
+	 */
+	public function testSetField()
+	{
+		$this->Organization->setField('field');
+		$this->assertEquals('field', $this->Organization->field);
+	}
+
+	/**
+	 * Tests Organization->setName()
+	 */
+	public function testSetName()
+	{
+		$this->Organization->setName('name');
+		$this->assertEquals('name', $this->Organization->name);
+	}
+
+	/**
+	 * Tests Organization->setSalary()
+	 */
+	public function testSetSalary()
+	{
+		$this->Organization->setSalary('salary');
+		$this->assertEquals('salary', $this->Organization->salary);
+	}
+
+	/**
+	 * Tests Organization->setStartDate()
+	 */
+	public function testSetStartDate()
+	{
+		$this->Organization->setStartDate('startdate');
+		$this->assertEquals('startdate', $this->Organization->startDate);
+	}
+
+	/**
+	 * Tests Organization->setSubField()
+	 */
+	public function testSetSubField()
+	{
+		$this->Organization->setSubField('subfield');
+		$this->assertEquals('subfield', $this->Organization->subField);
+	}
+
+	/**
+	 * Tests Organization->setTitle()
+	 */
+	public function testSetTitle()
+	{
+		$this->Organization->setTitle('title');
+		$this->assertEquals('title', $this->Organization->title);
+	}
+
+	/**
+	 * Tests Organization->setWebpage()
+	 */
+	public function testSetWebpage()
+	{
+		$this->Organization->setWebpage('webpage');
+		$this->assertEquals('webpage', $this->Organization->webpage);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/PersonTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/PersonTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/PersonTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/PersonTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,1084 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Person test case.
+ */
+class PersonTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Person
+	 */
+	private $Person;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->Person = new Person('ID', 'NAME');
+		$this->Person->aboutMe = 'ABOUTME';
+		$this->Person->activities = 'ACTIVITIES';
+		$this->Person->addresses = 'ADDRESSES';
+		$this->Person->age = 'AGE';
+		$this->Person->bodyType = 'BODYTYPE';
+		$this->Person->books = 'BOOKS';
+		$this->Person->cars = 'CARS';
+		$this->Person->children = 'CHILDREN';
+		$this->Person->currentLocation = 'CURRENTLOCATION';
+		$this->Person->dateOfBirth = 'DATEOFBIRTH';
+		$this->Person->drinker = 'HEAVILY';
+		$this->Person->emails = 'EMAILS';
+		$this->Person->ethnicity = 'ETHNICITY';
+		$this->Person->fashion = 'FASHION';
+		$this->Person->food = 'FOOD';
+		$this->Person->gender = 'GENDER';
+		$this->Person->happiestWhen = 'HAPPIESTWHEN';
+		$this->Person->hasApp = 'HASAPP';
+		$this->Person->heroes = 'HEROES';
+		$this->Person->humor = 'HUMOR';
+		$this->Person->interests = 'INTERESTS';
+		$this->Person->jobInterests = 'JOBINTERESTS';
+		$this->Person->jobs = 'JOBS';
+		$this->Person->languagesSpoken = 'LANGUAGESSPOKEN';
+		$this->Person->livingArrangement = 'LIVINGARRANGEMENT';
+		$this->Person->lookingFor = 'LOOKINGFOR';
+		$this->Person->movies = 'MOVIES';
+		$this->Person->music = 'MUSIC';
+		$this->Person->networkPresence = 'NETWORKPRESENCE';
+		$this->Person->nickname = 'NICKNAME';
+		$this->Person->pets = 'PETS';
+		$this->Person->phoneNumbers = 'PHONENUMBERS';
+		$this->Person->politicalViews = 'POLITICALVIEWS';
+		$this->Person->profileSong = 'PROFILESONG';
+		$this->Person->profileUrl = 'PROFILEURL';
+		$this->Person->profileVideo = 'PROFILEVIDEO';
+		$this->Person->quotes = 'QUOTES';
+		$this->Person->relationshipStatus = 'RELATIONSHIPSTATUS';
+		$this->Person->religion = 'RELIGION';
+		$this->Person->romance = 'ROMANCE';
+		$this->Person->scaredOf = 'SCAREDOF';
+		$this->Person->schools = 'SCHOOLS';
+		$this->Person->sexualOrientation = 'SEXUALORIENTATION';
+		$this->Person->smoker = 'SMOKER';
+		$this->Person->sports = 'SPORTS';
+		$this->Person->status = 'STATUS';
+		$this->Person->tags = 'TAGS';
+		$this->Person->thumbnailUrl = 'THUMBNAILSURL';
+		$this->Person->timeZone = 'TIMEZONE';
+		$this->Person->turnOffs = 'TURNOFFS';
+		$this->Person->turnOns = 'TURNONS';
+		$this->Person->tvShows = 'TVSHOWS';
+		$this->Person->urls = 'URLS';
+		$this->Person->isOwner = 'ISOWNER';
+		$this->Person->isViewer = 'ISVIEWER';
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Person = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Person->getAboutMe()
+	 */
+	public function testGetAboutMe()
+	{
+		$this->assertEquals('ABOUTME', $this->Person->getAboutMe());
+	}
+
+	/**
+	 * Tests Person->getActivities()
+	 */
+	public function testGetActivities()
+	{
+		$this->assertEquals('ACTIVITIES', $this->Person->getActivities());
+	}
+
+	/**
+	 * Tests Person->getAddresses()
+	 */
+	public function testGetAddresses()
+	{
+		$this->assertEquals('ADDRESSES', $this->Person->getAddresses());
+	}
+
+	/**
+	 * Tests Person->getAge()
+	 */
+	public function testGetAge()
+	{
+		$this->assertEquals('AGE', $this->Person->getAge());
+	}
+
+	/**
+	 * Tests Person->getBodyType()
+	 */
+	public function testGetBodyType()
+	{
+		$this->assertEquals('BODYTYPE', $this->Person->getBodyType());
+	}
+
+	/**
+	 * Tests Person->getBooks()
+	 */
+	public function testGetBooks()
+	{
+		$this->assertEquals('BOOKS', $this->Person->getBooks());
+	}
+
+	/**
+	 * Tests Person->getCars()
+	 */
+	public function testGetCars()
+	{
+		$this->assertEquals('CARS', $this->Person->getCars());
+	
+	}
+
+	/**
+	 * Tests Person->getChildren()
+	 */
+	public function testGetChildren()
+	{
+		$this->assertEquals('CHILDREN', $this->Person->getChildren());
+	}
+
+	/**
+	 * Tests Person->getCurrentLocation()
+	 */
+	public function testGetCurrentLocation()
+	{
+		$this->assertEquals('CURRENTLOCATION', $this->Person->getCurrentLocation());
+	}
+
+	/**
+	 * Tests Person->getDateOfBirth()
+	 */
+	public function testGetDateOfBirth()
+	{
+		$this->assertEquals('DATEOFBIRTH', $this->Person->getDateOfBirth());
+	}
+
+	/**
+	 * Tests Person->getDrinker()
+	 */
+	public function testGetDrinker()
+	{
+		$drinker = new EnumDrinker('HEAVILY');
+		$this->Person->setDrinker('HEAVILY');
+		$this->assertEquals($drinker, $this->Person->getDrinker());
+	}
+
+	/**
+	 * Tests Person->getEmails()
+	 */
+	public function testGetEmails()
+	{
+		$this->assertEquals('EMAILS', $this->Person->getEmails());
+	
+	}
+
+	/**
+	 * Tests Person->getEthnicity()
+	 */
+	public function testGetEthnicity()
+	{
+		$this->assertEquals('ETHNICITY', $this->Person->getEthnicity());
+	}
+
+	/**
+	 * Tests Person->getFashion()
+	 */
+	public function testGetFashion()
+	{
+		$this->assertEquals('FASHION', $this->Person->getFashion());
+	
+	}
+
+	/**
+	 * Tests Person->getFood()
+	 */
+	public function testGetFood()
+	{
+		$this->assertEquals('FOOD', $this->Person->getFood());
+	}
+
+	/**
+	 * Tests Person->getGender()
+	 */
+	public function testGetGender()
+	{
+		$gender = new EnumGender('FEMALE');
+		$this->Person->setGender('FEMALE');
+		$this->assertEquals($gender, $this->Person->getGender());
+	}
+
+	/**
+	 * Tests Person->getHappiestWhen()
+	 */
+	public function testGetHappiestWhen()
+	{
+		$this->assertEquals('HAPPIESTWHEN', $this->Person->getHappiestWhen());
+	}
+
+	/**
+	 * Tests Person->getHasApp()
+	 */
+	public function testGetHasApp()
+	{
+		$this->assertEquals('HASAPP', $this->Person->getHasApp());
+	}
+
+	/**
+	 * Tests Person->getHeroes()
+	 */
+	public function testGetHeroes()
+	{
+		$this->assertEquals('HEROES', $this->Person->getHeroes());
+	}
+
+	/**
+	 * Tests Person->getHumor()
+	 */
+	public function testGetHumor()
+	{
+		$this->assertEquals('HUMOR', $this->Person->getHumor());
+	}
+
+	/**
+	 * Tests Person->getId()
+	 */
+	public function testGetId()
+	{
+		$this->assertEquals('ID', $this->Person->getId());
+	}
+
+	/**
+	 * Tests Person->getInterests()
+	 */
+	public function testGetInterests()
+	{
+		$this->assertEquals('INTERESTS', $this->Person->getInterests());
+	}
+
+	/**
+	 * Tests Person->getIsOwner()
+	 */
+	public function testGetIsOwner()
+	{
+		$this->assertEquals('ISOWNER', $this->Person->getIsOwner());
+	
+	}
+
+	/**
+	 * Tests Person->getIsViewer()
+	 */
+	public function testGetIsViewer()
+	{
+		$this->assertEquals('ISVIEWER', $this->Person->getIsViewer());
+	}
+
+	/**
+	 * Tests Person->getJobInterests()
+	 */
+	public function testGetJobInterests()
+	{
+		$this->assertEquals('JOBINTERESTS', $this->Person->getJobInterests());
+	}
+
+	/**
+	 * Tests Person->getJobs()
+	 */
+	public function testGetJobs()
+	{
+		$this->assertEquals('JOBS', $this->Person->getJobs());
+	}
+
+	/**
+	 * Tests Person->getLanguagesSpoken()
+	 */
+	public function testGetLanguagesSpoken()
+	{
+		$this->assertEquals('LANGUAGESSPOKEN', $this->Person->getLanguagesSpoken());
+	}
+
+	/**
+	 * Tests Person->getLivingArrangement()
+	 */
+	public function testGetLivingArrangement()
+	{
+		$this->assertEquals('LIVINGARRANGEMENT', $this->Person->getLivingArrangement());
+	}
+
+	/**
+	 * Tests Person->getLookingFor()
+	 */
+	public function testGetLookingFor()
+	{
+		$this->assertEquals('LOOKINGFOR', $this->Person->getLookingFor());
+	}
+
+	/**
+	 * Tests Person->getMovies()
+	 */
+	public function testGetMovies()
+	{
+		$this->assertEquals('MOVIES', $this->Person->getMovies());
+	}
+
+	/**
+	 * Tests Person->getMusic()
+	 */
+	public function testGetMusic()
+	{
+		$this->assertEquals('MUSIC', $this->Person->getMusic());
+	}
+
+	/**
+	 * Tests Person->getName()
+	 */
+	public function testGetName()
+	{
+		$this->assertEquals('NAME', $this->Person->getName());
+	}
+
+	/**
+	 * Tests Person->getNetworkPresence()
+	 */
+	public function testGetNetworkPresence()
+	{
+		$presence = new EnumPresence('DND');
+		$this->Person->setNetworkPresence('DND');
+		$this->assertEquals($presence, $this->Person->getNetworkPresence());
+	}
+
+	/**
+	 * Tests Person->getNickname()
+	 */
+	public function testGetNickname()
+	{
+		$this->assertEquals('NICKNAME', $this->Person->getNickname());
+	
+	}
+
+	/**
+	 * Tests Person->getPets()
+	 */
+	public function testGetPets()
+	{
+		$this->assertEquals('PETS', $this->Person->getPets());
+	}
+
+	/**
+	 * Tests Person->getPhoneNumbers()
+	 */
+	public function testGetPhoneNumbers()
+	{
+		$this->assertEquals('PHONENUMBERS', $this->Person->getPhoneNumbers());
+	}
+
+	/**
+	 * Tests Person->getPoliticalViews()
+	 */
+	public function testGetPoliticalViews()
+	{
+		$this->assertEquals('POLITICALVIEWS', $this->Person->getPoliticalViews());
+	}
+
+	/**
+	 * Tests Person->getProfileSong()
+	 */
+	public function testGetProfileSong()
+	{
+		$this->assertEquals('PROFILESONG', $this->Person->getProfileSong());
+	}
+
+	/**
+	 * Tests Person->getProfileUrl()
+	 */
+	public function testGetProfileUrl()
+	{
+		$this->assertEquals('PROFILEURL', $this->Person->getProfileUrl());
+	}
+
+	/**
+	 * Tests Person->getProfileVideo()
+	 */
+	public function testGetProfileVideo()
+	{
+		$this->assertEquals('PROFILEVIDEO', $this->Person->getProfileVideo());
+	}
+
+	/**
+	 * Tests Person->getQuotes()
+	 */
+	public function testGetQuotes()
+	{
+		$this->assertEquals('QUOTES', $this->Person->getQuotes());
+	}
+
+	/**
+	 * Tests Person->getRelationshipStatus()
+	 */
+	public function testGetRelationshipStatus()
+	{
+		$this->assertEquals('RELATIONSHIPSTATUS', $this->Person->getRelationshipStatus());
+	}
+
+	/**
+	 * Tests Person->getReligion()
+	 */
+	public function testGetReligion()
+	{
+		$this->assertEquals('RELIGION', $this->Person->getReligion());
+	}
+
+	/**
+	 * Tests Person->getRomance()
+	 */
+	public function testGetRomance()
+	{
+		$this->assertEquals('ROMANCE', $this->Person->getRomance());
+	}
+
+	/**
+	 * Tests Person->getScaredOf()
+	 */
+	public function testGetScaredOf()
+	{
+		$this->assertEquals('SCAREDOF', $this->Person->getScaredOf());
+	}
+
+	/**
+	 * Tests Person->getSchools()
+	 */
+	public function testGetSchools()
+	{
+		$this->assertEquals('SCHOOLS', $this->Person->getSchools());
+	}
+
+	/**
+	 * Tests Person->getSexualOrientation()
+	 */
+	public function testGetSexualOrientation()
+	{
+		$this->assertEquals('SEXUALORIENTATION', $this->Person->getSexualOrientation());
+	}
+
+	/**
+	 * Tests Person->getSmoker()
+	 */
+	public function testGetSmoker()
+	{
+		$smoker = new EnumSmoker('OCCASIONALLY');
+		$this->Person->setSmoker('OCCASIONALLY');
+		$this->assertEquals($smoker, $this->Person->getSmoker());
+	}
+
+	/**
+	 * Tests Person->getSports()
+	 */
+	public function testGetSports()
+	{
+		$this->assertEquals('SPORTS', $this->Person->getSports());
+	}
+
+	/**
+	 * Tests Person->getStatus()
+	 */
+	public function testGetStatus()
+	{
+		$this->assertEquals('STATUS', $this->Person->getStatus());
+	}
+
+	/**
+	 * Tests Person->getTags()
+	 */
+	public function testGetTags()
+	{
+		$this->assertEquals('TAGS', $this->Person->getTags());
+	}
+
+	/**
+	 * Tests Person->getThumbnailUrl()
+	 */
+	public function testGetThumbnailUrl()
+	{
+		$this->assertEquals('THUMBNAILSURL', $this->Person->getThumbnailUrl());
+	}
+
+	/**
+	 * Tests Person->getTimeZone()
+	 */
+	public function testGetTimeZone()
+	{
+		$this->assertEquals('TIMEZONE', $this->Person->getTimeZone());
+	}
+
+	/**
+	 * Tests Person->getTurnOffs()
+	 */
+	public function testGetTurnOffs()
+	{
+		$this->assertEquals('TURNOFFS', $this->Person->getTurnOffs());
+	}
+
+	/**
+	 * Tests Person->getTurnOns()
+	 */
+	public function testGetTurnOns()
+	{
+		$this->assertEquals('TURNONS', $this->Person->getTurnOns());
+	}
+
+	/**
+	 * Tests Person->getTvShows()
+	 */
+	public function testGetTvShows()
+	{
+		$this->assertEquals('TVSHOWS', $this->Person->getTvShows());
+	}
+
+	/**
+	 * Tests Person->getUrls()
+	 */
+	public function testGetUrls()
+	{
+		$this->assertEquals('URLS', $this->Person->getUrls());
+	}
+
+	/**
+	 * Tests Person->setAboutMe()
+	 */
+	public function testSetAboutMe()
+	{
+		$this->Person->setAboutMe('aboutme');
+		$this->assertEquals('aboutme', $this->Person->aboutMe);
+	}
+
+	/**
+	 * Tests Person->setActivities()
+	 */
+	public function testSetActivities()
+	{
+		$this->Person->setActivities('activities');
+		$this->assertEquals('activities', $this->Person->activities);
+	}
+
+	/**
+	 * Tests Person->setAddresses()
+	 */
+	public function testSetAddresses()
+	{
+		$this->Person->setAddresses('addresses');
+		$this->assertEquals('addresses', $this->Person->addresses);
+	}
+
+	/**
+	 * Tests Person->setAge()
+	 */
+	public function testSetAge()
+	{
+		$this->Person->setAge('age');
+		$this->assertEquals('age', $this->Person->age);
+	}
+
+	/**
+	 * Tests Person->setBodyType()
+	 */
+	public function testSetBodyType()
+	{
+		$this->Person->setBodyType('bodytype');
+		$this->assertEquals('bodytype', $this->Person->bodyType);
+	}
+
+	/**
+	 * Tests Person->setBooks()
+	 */
+	public function testSetBooks()
+	{
+		$this->Person->setBooks('books');
+		$this->assertEquals('books', $this->Person->books);
+	}
+
+	/**
+	 * Tests Person->setCars()
+	 */
+	public function testSetCars()
+	{
+		$this->Person->setCars('cars');
+		$this->assertEquals('cars', $this->Person->cars);
+	}
+
+	/**
+	 * Tests Person->setChildren()
+	 */
+	public function testSetChildren()
+	{
+		$this->Person->setChildren('children');
+		$this->assertEquals('children', $this->Person->children);
+	}
+
+	/**
+	 * Tests Person->setCurrentLocation()
+	 */
+	public function testSetCurrentLocation()
+	{
+		$this->Person->setCurrentLocation('currentlocation');
+		$this->assertEquals('currentlocation', $this->Person->currentLocation);
+	}
+
+	/**
+	 * Tests Person->setDateOfBirth()
+	 */
+	public function testSetDateOfBirth()
+	{
+		$this->Person->setDateOfBirth('dateofbirth');
+		$this->assertEquals('dateofbirth', $this->Person->dateOfBirth);
+	}
+
+	/**
+	 * Tests Person->setDrinker()
+	 */
+	public function testSetDrinker()
+	{
+		$this->Person->setDrinker('NO');
+		$this->assertEquals('No', $this->Person->drinker->displayValue);
+	}
+
+	/**
+	 * Tests Person->setEmails()
+	 */
+	public function testSetEmails()
+	{
+		$this->Person->setEmails('emails');
+		$this->assertEquals('emails', $this->Person->emails);
+	}
+
+	/**
+	 * Tests Person->setEthnicity()
+	 */
+	public function testSetEthnicity()
+	{
+		$this->Person->setEthnicity('ethnicity');
+		$this->assertEquals('ethnicity', $this->Person->ethnicity);
+	}
+
+	/**
+	 * Tests Person->setFashion()
+	 */
+	public function testSetFashion()
+	{
+		$this->Person->setFashion('fashion');
+		$this->assertEquals('fashion', $this->Person->fashion);
+	}
+
+	/**
+	 * Tests Person->setFood()
+	 */
+	public function testSetFood()
+	{
+		$this->Person->setFood('food');
+		$this->assertEquals('food', $this->Person->food);
+	}
+
+	/**
+	 * Tests Person->setGender()
+	 */
+	public function testSetGender()
+	{
+		$this->Person->setGender('MALE');
+		$this->assertEquals('Male', $this->Person->gender->displayValue);
+	}
+
+	/**
+	 * Tests Person->setHappiestWhen()
+	 */
+	public function testSetHappiestWhen()
+	{
+		$this->Person->setHappiestWhen('happiestwhen');
+		$this->assertEquals('happiestwhen', $this->Person->happiestWhen);
+	}
+
+	/**
+	 * Tests Person->setHasApp()
+	 */
+	public function testSetHasApp()
+	{
+		$this->Person->setHasApp('hasapp');
+		$this->assertEquals('hasapp', $this->Person->hasApp);
+	}
+
+	/**
+	 * Tests Person->setHeroes()
+	 */
+	public function testSetHeroes()
+	{
+		$this->Person->setHeroes('heroes');
+		$this->assertEquals('heroes', $this->Person->heroes);
+	}
+
+	/**
+	 * Tests Person->setHumor()
+	 */
+	public function testSetHumor()
+	{
+		$this->Person->setHumor('humor');
+		$this->assertEquals('humor', $this->Person->humor);
+	}
+
+	/**
+	 * Tests Person->setId()
+	 */
+	public function testSetId()
+	{
+		$this->Person->setId('id');
+		$this->assertEquals('id', $this->Person->id);
+	}
+
+	/**
+	 * Tests Person->setInterests()
+	 */
+	public function testSetInterests()
+	{
+		$this->Person->setInterests('interests');
+		$this->assertEquals('interests', $this->Person->interests);
+	}
+
+	/**
+	 * Tests Person->setIsOwner()
+	 */
+	public function testSetIsOwner()
+	{
+		$this->Person->setIsOwner('isowner');
+		$this->assertEquals('isowner', $this->Person->isOwner);
+	}
+
+	/**
+	 * Tests Person->setIsViewer()
+	 */
+	public function testSetIsViewer()
+	{
+		$this->Person->setIsViewer('isviewer');
+		$this->assertEquals('isviewer', $this->Person->isViewer);
+	}
+
+	/**
+	 * Tests Person->setJobInterests()
+	 */
+	public function testSetJobInterests()
+	{
+		$this->Person->setJobInterests('jobinterests');
+		$this->assertEquals('jobinterests', $this->Person->jobInterests);
+	}
+
+	/**
+	 * Tests Person->setJobs()
+	 */
+	public function testSetJobs()
+	{
+		$this->Person->setJobs('jobs');
+		$this->assertEquals('jobs', $this->Person->jobs);
+	}
+
+	/**
+	 * Tests Person->setLanguagesSpoken()
+	 */
+	public function testSetLanguagesSpoken()
+	{
+		$this->Person->setLanguagesSpoken('languagesspoken');
+		$this->assertEquals('languagesspoken', $this->Person->languagesSpoken);
+	}
+
+	/**
+	 * Tests Person->setLivingArrangement()
+	 */
+	public function testSetLivingArrangement()
+	{
+		$this->Person->setLivingArrangement('livingarrangement');
+		$this->assertEquals('livingarrangement', $this->Person->livingArrangement);
+	}
+
+	/**
+	 * Tests Person->setLookingFor()
+	 */
+	public function testSetLookingFor()
+	{
+		$this->Person->setLookingFor('lookingfor');
+		$this->assertEquals('lookingfor', $this->Person->lookingFor);
+	}
+
+	/**
+	 * Tests Person->setMovies()
+	 */
+	public function testSetMovies()
+	{
+		$this->Person->setMovies('movies');
+		$this->assertEquals('movies', $this->Person->movies);
+	}
+
+	/**
+	 * Tests Person->setMusic()
+	 */
+	public function testSetMusic()
+	{
+		$this->Person->setMusic('music');
+		$this->assertEquals('music', $this->Person->music);
+	}
+
+	/**
+	 * Tests Person->setName()
+	 */
+	public function testSetName()
+	{
+		$this->Person->setName('name');
+		$this->assertEquals('name', $this->Person->name);
+	}
+
+	/**
+	 * Tests Person->setNetworkPresence()
+	 */
+	public function testSetNetworkPresence()
+	{
+		$this->Person->setNetworkPresence('AWAY');
+		$this->assertEquals('Away', $this->Person->networkPresence->displayValue);
+	}
+
+	/**
+	 * Tests Person->setNickname()
+	 */
+	public function testSetNickname()
+	{
+		$this->Person->setNickname('nickname');
+		$this->assertEquals('nickname', $this->Person->nickname);
+	}
+
+	/**
+	 * Tests Person->setPets()
+	 */
+	public function testSetPets()
+	{
+		$this->Person->setPets('pets');
+		$this->assertEquals('pets', $this->Person->pets);
+	}
+
+	/**
+	 * Tests Person->setPhoneNumbers()
+	 */
+	public function testSetPhoneNumbers()
+	{
+		$this->Person->setPhoneNumbers('phonenumbers');
+		$this->assertEquals('phonenumbers', $this->Person->phoneNumbers);
+	}
+
+	/**
+	 * Tests Person->setPoliticalViews()
+	 */
+	public function testSetPoliticalViews()
+	{
+		$this->Person->setPoliticalViews('politicalviews');
+		$this->assertEquals('politicalviews', $this->Person->politicalViews);
+	}
+
+	/**
+	 * Tests Person->setProfileSong()
+	 */
+	public function testSetProfileSong()
+	{
+		$this->Person->setProfileSong('profilesong');
+		$this->assertEquals('profilesong', $this->Person->profileSong);
+	}
+
+	/**
+	 * Tests Person->setProfileUrl()
+	 */
+	public function testSetProfileUrl()
+	{
+		$this->Person->setProfileUrl('profileurl');
+		$this->assertEquals('profileurl', $this->Person->profileUrl);
+	}
+
+	/**
+	 * Tests Person->setProfileVideo()
+	 */
+	public function testSetProfileVideo()
+	{
+		$this->Person->setProfileVideo('profilevideo');
+		$this->assertEquals('profilevideo', $this->Person->profileVideo);
+	}
+
+	/**
+	 * Tests Person->setQuotes()
+	 */
+	public function testSetQuotes()
+	{
+		$this->Person->setQuotes('quotes');
+		$this->assertEquals('quotes', $this->Person->quotes);
+	}
+
+	/**
+	 * Tests Person->setRelationshipStatus()
+	 */
+	public function testSetRelationshipStatus()
+	{
+		$this->Person->setRelationshipStatus('relationshipstatus');
+		$this->assertEquals('relationshipstatus', $this->Person->relationshipStatus);
+	}
+
+	/**
+	 * Tests Person->setReligion()
+	 */
+	public function testSetReligion()
+	{
+		$this->Person->setReligion('religion');
+		$this->assertEquals('religion', $this->Person->religion);
+	}
+
+	/**
+	 * Tests Person->setRomance()
+	 */
+	public function testSetRomance()
+	{
+		$this->Person->setRomance('romance');
+		$this->assertEquals('romance', $this->Person->romance);
+	}
+
+	/**
+	 * Tests Person->setScaredOf()
+	 */
+	public function testSetScaredOf()
+	{
+		$this->Person->setScaredOf('scaredof');
+		$this->assertEquals('scaredof', $this->Person->scaredOf);
+	}
+
+	/**
+	 * Tests Person->setSchools()
+	 */
+	public function testSetSchools()
+	{
+		$this->Person->setSchools('schools');
+		$this->assertEquals('schools', $this->Person->schools);
+	}
+
+	/**
+	 * Tests Person->setSexualOrientation()
+	 */
+	public function testSetSexualOrientation()
+	{
+		$this->Person->setSexualOrientation('sexualorientation');
+		$this->assertEquals('sexualorientation', $this->Person->sexualOrientation);
+	}
+
+	/**
+	 * Tests Person->setSmoker()
+	 */
+	public function testSetSmoker()
+	{
+		$this->Person->setSmoker('NO');
+		$this->assertEquals('No', $this->Person->smoker->displayValue);
+	}
+
+	/**
+	 * Tests Person->setSports()
+	 */
+	public function testSetSports()
+	{
+		$this->Person->setSports('sports');
+		$this->assertEquals('sports', $this->Person->sports);
+	}
+
+	/**
+	 * Tests Person->setStatus()
+	 */
+	public function testSetStatus()
+	{
+		$this->Person->setStatus('status');
+		$this->assertEquals('status', $this->Person->status);
+	}
+
+	/**
+	 * Tests Person->setTags()
+	 */
+	public function testSetTags()
+	{
+		$this->Person->setTags('tags');
+		$this->assertEquals('tags', $this->Person->tags);
+	}
+
+	/**
+	 * Tests Person->setThumbnailUrl()
+	 */
+	public function testSetThumbnailUrl()
+	{
+		$this->Person->setThumbnailUrl('thumbnailurl');
+		$this->assertEquals('thumbnailurl', $this->Person->thumbnailUrl);
+	}
+
+	/**
+	 * Tests Person->setTimeZone()
+	 */
+	public function testSetTimeZone()
+	{
+		$this->Person->setTimeZone('timezone');
+		$this->assertEquals('timezone', $this->Person->timeZone);
+	}
+
+	/**
+	 * Tests Person->setTurnOffs()
+	 */
+	public function testSetTurnOffs()
+	{
+		$this->Person->setTurnOffs('turnoffs');
+		$this->assertEquals('turnoffs', $this->Person->turnOffs);
+	}
+
+	/**
+	 * Tests Person->setTurnOns()
+	 */
+	public function testSetTurnOns()
+	{
+		$this->Person->setTurnOns('turnons');
+		$this->assertEquals('turnons', $this->Person->turnOns);
+	}
+
+	/**
+	 * Tests Person->setTvShows()
+	 */
+	public function testSetTvShows()
+	{
+		$this->Person->setTvShows('tvshows');
+		$this->assertEquals('tvshows', $this->Person->tvShows);
+	}
+
+	/**
+	 * Tests Person->setUrls()
+	 */
+	public function testSetUrls()
+	{
+		$this->Person->setUrls('urls');
+		$this->assertEquals('urls', $this->Person->urls);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/PhoneTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/PhoneTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/PhoneTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/PhoneTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,81 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Phone test case.
+ */
+class PhoneTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Phone
+	 */
+	private $Phone;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->Phone = new Phone('number', 'type');
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Phone = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Phone->getNumber()
+	 */
+	public function testGetNumber()
+	{
+		$this->assertEquals('number', $this->Phone->getNumber());
+	}
+
+	/**
+	 * Tests Phone->getType()
+	 */
+	public function testGetType()
+	{
+		$this->assertEquals('type', $this->Phone->getType());
+	}
+
+	/**
+	 * Tests Phone->setNumber()
+	 */
+	public function testSetNumber()
+	{
+		$this->Phone->setNumber('NUMBER');
+		$this->assertEquals('NUMBER', $this->Phone->number);
+	}
+
+	/**
+	 * Tests Phone->setType()
+	 */
+	public function testSetType()
+	{
+		$this->Phone->setType('TYPE');
+		$this->assertEquals('TYPE', $this->Phone->type);
+	}
+}

Added: incubator/shindig/trunk/php/test/social-api/UrlTest.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/social-api/UrlTest.php?rev=682122&view=auto
==============================================================================
--- incubator/shindig/trunk/php/test/social-api/UrlTest.php (added)
+++ incubator/shindig/trunk/php/test/social-api/UrlTest.php Sun Aug  3 02:34:25 2008
@@ -0,0 +1,98 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ */
+
+/**
+ * Url test case.
+ */
+class UrlTest extends PHPUnit_Framework_TestCase {
+	
+	/**
+	 * @var Url
+	 */
+	private $Url;
+
+	/**
+	 * Prepares the environment before running a test.
+	 */
+	protected function setUp()
+	{
+		parent::setUp();
+		$this->Url = new Url('A', 'L', 'T');
+	}
+
+	/**
+	 * Cleans up the environment after running a test.
+	 */
+	protected function tearDown()
+	{
+		$this->Url = null;
+		parent::tearDown();
+	}
+
+	/**
+	 * Tests Url->getAddress()
+	 */
+	public function testGetAddress()
+	{
+		$this->assertEquals('A', $this->Url->getAddress());
+	}
+
+	/**
+	 * Tests Url->getLinkText()
+	 */
+	public function testGetLinkText()
+	{
+		$this->assertEquals('L', $this->Url->getLinkText());
+	}
+
+	/**
+	 * Tests Url->getType()
+	 */
+	public function testGetType()
+	{
+		$this->assertEquals('T', $this->Url->getType());
+	}
+
+	/**
+	 * Tests Url->setAddress()
+	 */
+	public function testSetAddress()
+	{
+		$this->Url->setAddress('a');
+		$this->assertEquals('a', $this->Url->address);
+	}
+
+	/**
+	 * Tests Url->setLinkText()
+	 */
+	public function testSetLinkText()
+	{
+		$this->Url->setLinkText('l');
+		$this->assertEquals('l', $this->Url->linkText);
+	}
+
+	/**
+	 * Tests Url->setType()
+	 */
+	public function testSetType()
+	{
+		$this->Url->setType('t');
+		$this->assertEquals('t', $this->Url->type);
+	}
+}
\ No newline at end of file