@@ -8,130 +8,130 @@ |
||
| 8 | 8 | class THttpSessionTest extends PHPUnit_Framework_TestCase { |
| 9 | 9 | |
| 10 | 10 | public function testInit() { |
| 11 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 11 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | public function testOpen() { |
| 15 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 15 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public function testClose() { |
| 19 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 19 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function testDestroy() { |
| 23 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 23 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function testGetIsStarted() { |
| 27 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 27 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function testSetSessionID() { |
| 31 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 31 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function testSetSessionName() { |
| 35 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 35 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function testSetSavePath() { |
| 39 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 39 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | public function testSetUseCustomStorage() { |
| 43 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 43 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function testSetCookieModeNone() { |
| 47 | - $session = new THttpSession(); |
|
| 48 | - $session->CookieMode = THttpSessionCookieMode::None; |
|
| 47 | + $session = new THttpSession(); |
|
| 48 | + $session->CookieMode = THttpSessionCookieMode::None; |
|
| 49 | 49 | |
| 50 | - $this->assertEquals(0, ini_get('session.use_cookies_only')); |
|
| 51 | - $this->assertEquals(0, ini_get('session.use_cookies')); |
|
| 52 | - $this->assertEquals(THttpSessionCookieMode::None, $session->CookieMode); |
|
| 50 | + $this->assertEquals(0, ini_get('session.use_cookies_only')); |
|
| 51 | + $this->assertEquals(0, ini_get('session.use_cookies')); |
|
| 52 | + $this->assertEquals(THttpSessionCookieMode::None, $session->CookieMode); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | public function testSetCookieModeAllow() { |
| 56 | - $session = new THttpSession(); |
|
| 57 | - $session->CookieMode = THttpSessionCookieMode::Allow; |
|
| 56 | + $session = new THttpSession(); |
|
| 57 | + $session->CookieMode = THttpSessionCookieMode::Allow; |
|
| 58 | 58 | |
| 59 | - $this->assertEquals(0, ini_get('session.use_only_cookies')); |
|
| 60 | - $this->assertEquals(1, ini_get('session.use_cookies')); |
|
| 61 | - $this->assertEquals(THttpSessionCookieMode::Allow, $session->CookieMode); |
|
| 59 | + $this->assertEquals(0, ini_get('session.use_only_cookies')); |
|
| 60 | + $this->assertEquals(1, ini_get('session.use_cookies')); |
|
| 61 | + $this->assertEquals(THttpSessionCookieMode::Allow, $session->CookieMode); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | public function testSetCookieModeAlways() { |
| 65 | - $session = new THttpSession(); |
|
| 66 | - $session->CookieMode = THttpSessionCookieMode::Only; |
|
| 65 | + $session = new THttpSession(); |
|
| 66 | + $session->CookieMode = THttpSessionCookieMode::Only; |
|
| 67 | 67 | |
| 68 | - $this->assertEquals(1, ini_get('session.use_only_cookies')); |
|
| 69 | - $this->assertEquals(1, ini_get('session.use_cookies')); |
|
| 70 | - $this->assertEquals(0, ini_get('session.use_trans_sid')); |
|
| 71 | - $this->assertEquals(THttpSessionCookieMode::Only, $session->CookieMode); |
|
| 68 | + $this->assertEquals(1, ini_get('session.use_only_cookies')); |
|
| 69 | + $this->assertEquals(1, ini_get('session.use_cookies')); |
|
| 70 | + $this->assertEquals(0, ini_get('session.use_trans_sid')); |
|
| 71 | + $this->assertEquals(THttpSessionCookieMode::Only, $session->CookieMode); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | public function testSetAutoStart() { |
| 75 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 75 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | public function testSetGProbability() { |
| 79 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 79 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | public function testSetUseTransparentSessionID() { |
| 83 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 83 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | public function testSetTimeout() { |
| 87 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 87 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | public function testGetIterator() { |
| 91 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 91 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | public function testGetCount() { |
| 95 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 95 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | public function testGetKeys() { |
| 99 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 99 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | public function testItemAt() { |
| 103 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 103 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | public function testAdd() { |
| 107 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 107 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | public function testRemove() { |
| 111 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 111 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | public function testContains() { |
| 115 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 115 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | public function testToArray() { |
| 119 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 119 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | public function testOffsetExists() { |
| 123 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 123 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | public function testOffsetGet() { |
| 127 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 127 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | public function testOffsetSet() { |
| 131 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 131 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | public function testOffsetUnset() { |
| 135 | - throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 135 | + throw new PHPUnit_Framework_IncompleteTestError(); |
|
| 136 | 136 | } |
| 137 | 137 | } |
@@ -10,17 +10,17 @@ |
||
| 10 | 10 | |
| 11 | 11 | class Xml_AllTests { |
| 12 | 12 | public static function main() { |
| 13 | - PHPUnit_TextUI_TestRunner::run(self::suite()); |
|
| 13 | + PHPUnit_TextUI_TestRunner::run(self::suite()); |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | public static function suite() { |
| 17 | - $suite = new PHPUnit_Framework_TestSuite('System.Xml'); |
|
| 17 | + $suite = new PHPUnit_Framework_TestSuite('System.Xml'); |
|
| 18 | 18 | |
| 19 | - $suite->addTestSuite('TXmlDocumentTest'); |
|
| 19 | + $suite->addTestSuite('TXmlDocumentTest'); |
|
| 20 | 20 | $suite->addTestSuite('TXmlElementTest'); |
| 21 | 21 | $suite->addTestSuite('TXmlElementListTest'); |
| 22 | 22 | |
| 23 | - return $suite; |
|
| 23 | + return $suite; |
|
| 24 | 24 | } |
| 25 | 25 | } |
| 26 | 26 | |
@@ -37,21 +37,21 @@ |
||
| 37 | 37 | |
| 38 | 38 | public function testActive() |
| 39 | 39 | { |
| 40 | - $this->assertFalse($this->_connection2->Active); |
|
| 40 | + $this->assertFalse($this->_connection2->Active); |
|
| 41 | 41 | |
| 42 | - $this->_connection2->Active=true; |
|
| 43 | - $this->assertTrue($this->_connection2->Active); |
|
| 44 | - $pdo=$this->_connection2->PdoInstance; |
|
| 45 | - $this->assertTrue($pdo instanceof PDO); |
|
| 46 | - // test setting Active repeatedly doesn't re-connect DB |
|
| 47 | - $this->_connection2->Active=true; |
|
| 48 | - $this->assertTrue($pdo===$this->_connection2->PdoInstance); |
|
| 42 | + $this->_connection2->Active=true; |
|
| 43 | + $this->assertTrue($this->_connection2->Active); |
|
| 44 | + $pdo=$this->_connection2->PdoInstance; |
|
| 45 | + $this->assertTrue($pdo instanceof PDO); |
|
| 46 | + // test setting Active repeatedly doesn't re-connect DB |
|
| 47 | + $this->_connection2->Active=true; |
|
| 48 | + $this->assertTrue($pdo===$this->_connection2->PdoInstance); |
|
| 49 | 49 | |
| 50 | 50 | $this->_connection2->Active=false; |
| 51 | - $this->assertFalse($this->_connection2->Active); |
|
| 51 | + $this->assertFalse($this->_connection2->Active); |
|
| 52 | 52 | |
| 53 | - try |
|
| 54 | - { |
|
| 53 | + try |
|
| 54 | + { |
|
| 55 | 55 | $connection=new TDbConnection('unknown:'.TEST_DB_FILE); |
| 56 | 56 | $connection->Active=true; |
| 57 | 57 | $this->fail('Expected exception is not raised'); |
@@ -22,11 +22,11 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | class AllTests { |
| 24 | 24 | public static function main() { |
| 25 | - PHPUnit_TextUI_TestRunner::run(self::suite()); |
|
| 25 | + PHPUnit_TextUI_TestRunner::run(self::suite()); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | public static function suite() { |
| 29 | - $suite = new PHPUnit_Framework_TestSuite('PRADO PHP Framework'); |
|
| 29 | + $suite = new PHPUnit_Framework_TestSuite('PRADO PHP Framework'); |
|
| 30 | 30 | |
| 31 | 31 | $suite->addTest(Xml_AllTests::suite()); |
| 32 | 32 | $suite->addTest(IO_AllTests::suite()); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $suite->addTestSuite('TComponentTest'); |
| 45 | 45 | |
| 46 | - return $suite; |
|
| 46 | + return $suite; |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
@@ -88,18 +88,18 @@ |
||
| 88 | 88 | |
| 89 | 89 | class Category extends MultipleFKSqliteRecord |
| 90 | 90 | { |
| 91 | - public $cat_id; |
|
| 92 | - public $category_name; |
|
| 93 | - public $parent_cat; |
|
| 94 | - |
|
| 95 | - public $parent_category; |
|
| 96 | - public $child_categories=array(); |
|
| 97 | - |
|
| 98 | - public static $RELATIONS=array |
|
| 99 | - ( |
|
| 100 | - 'parent_category' => array(self::BELONGS_TO, 'Category'), |
|
| 101 | - 'child_categories' => array(self::HAS_MANY, 'Category'), |
|
| 102 | - ); |
|
| 91 | + public $cat_id; |
|
| 92 | + public $category_name; |
|
| 93 | + public $parent_cat; |
|
| 94 | + |
|
| 95 | + public $parent_category; |
|
| 96 | + public $child_categories=array(); |
|
| 97 | + |
|
| 98 | + public static $RELATIONS=array |
|
| 99 | + ( |
|
| 100 | + 'parent_category' => array(self::BELONGS_TO, 'Category'), |
|
| 101 | + 'child_categories' => array(self::HAS_MANY, 'Category'), |
|
| 102 | + ); |
|
| 103 | 103 | |
| 104 | 104 | public static function finder($class=__CLASS__) |
| 105 | 105 | { |
@@ -21,46 +21,46 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | class TeamRecord extends BaseFkRecord |
| 23 | 23 | { |
| 24 | - const TABLE='teams'; |
|
| 25 | - public $name; |
|
| 26 | - public $location; |
|
| 27 | - |
|
| 28 | - public $players=array(); |
|
| 29 | - |
|
| 30 | - //define the $player member having has many relationship with PlayerRecord |
|
| 31 | - public static $RELATIONS=array |
|
| 32 | - ( |
|
| 33 | - 'players' => array(self::HAS_MANY, 'PlayerRecord'), |
|
| 34 | - ); |
|
| 35 | - |
|
| 36 | - public static function finder($className=__CLASS__) |
|
| 37 | - { |
|
| 38 | - return parent::finder($className); |
|
| 39 | - } |
|
| 24 | + const TABLE='teams'; |
|
| 25 | + public $name; |
|
| 26 | + public $location; |
|
| 27 | + |
|
| 28 | + public $players=array(); |
|
| 29 | + |
|
| 30 | + //define the $player member having has many relationship with PlayerRecord |
|
| 31 | + public static $RELATIONS=array |
|
| 32 | + ( |
|
| 33 | + 'players' => array(self::HAS_MANY, 'PlayerRecord'), |
|
| 34 | + ); |
|
| 35 | + |
|
| 36 | + public static function finder($className=__CLASS__) |
|
| 37 | + { |
|
| 38 | + return parent::finder($className); |
|
| 39 | + } |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | class PlayerRecord extends BaseFkRecord |
| 43 | 43 | { |
| 44 | - const TABLE='players'; |
|
| 45 | - public $player_id; |
|
| 46 | - public $age; |
|
| 47 | - public $team_name; |
|
| 48 | - |
|
| 49 | - public $team; |
|
| 50 | - private $_skills; |
|
| 51 | - public $profile; |
|
| 52 | - |
|
| 53 | - public static $RELATIONS=array |
|
| 54 | - ( |
|
| 55 | - 'skills' => array(self::MANY_TO_MANY, 'SkillRecord', 'player_skills'), |
|
| 56 | - 'team' => array(self::BELONGS_TO, 'TeamRecord'), |
|
| 57 | - 'profile' => array(self::HAS_ONE, 'ProfileRecord'), |
|
| 58 | - ); |
|
| 59 | - |
|
| 60 | - public static function finder($className=__CLASS__) |
|
| 61 | - { |
|
| 62 | - return parent::finder($className); |
|
| 63 | - } |
|
| 44 | + const TABLE='players'; |
|
| 45 | + public $player_id; |
|
| 46 | + public $age; |
|
| 47 | + public $team_name; |
|
| 48 | + |
|
| 49 | + public $team; |
|
| 50 | + private $_skills; |
|
| 51 | + public $profile; |
|
| 52 | + |
|
| 53 | + public static $RELATIONS=array |
|
| 54 | + ( |
|
| 55 | + 'skills' => array(self::MANY_TO_MANY, 'SkillRecord', 'player_skills'), |
|
| 56 | + 'team' => array(self::BELONGS_TO, 'TeamRecord'), |
|
| 57 | + 'profile' => array(self::HAS_ONE, 'ProfileRecord'), |
|
| 58 | + ); |
|
| 59 | + |
|
| 60 | + public static function finder($className=__CLASS__) |
|
| 61 | + { |
|
| 62 | + return parent::finder($className); |
|
| 63 | + } |
|
| 64 | 64 | |
| 65 | 65 | public function getSkills() |
| 66 | 66 | { |
@@ -85,40 +85,40 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | class ProfileRecord extends BaseFkRecord |
| 87 | 87 | { |
| 88 | - const TABLE='profiles'; |
|
| 89 | - public $fk_player_id; |
|
| 90 | - public $salary; |
|
| 88 | + const TABLE='profiles'; |
|
| 89 | + public $fk_player_id; |
|
| 90 | + public $salary; |
|
| 91 | 91 | |
| 92 | - public $player; |
|
| 92 | + public $player; |
|
| 93 | 93 | |
| 94 | - public static $RELATIONS=array |
|
| 95 | - ( |
|
| 96 | - 'player' => array(self::BELONGS_TO, 'PlayerRecord'), |
|
| 97 | - ); |
|
| 94 | + public static $RELATIONS=array |
|
| 95 | + ( |
|
| 96 | + 'player' => array(self::BELONGS_TO, 'PlayerRecord'), |
|
| 97 | + ); |
|
| 98 | 98 | |
| 99 | - public static function finder($className=__CLASS__) |
|
| 100 | - { |
|
| 101 | - return parent::finder($className); |
|
| 102 | - } |
|
| 99 | + public static function finder($className=__CLASS__) |
|
| 100 | + { |
|
| 101 | + return parent::finder($className); |
|
| 102 | + } |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | class SkillRecord extends BaseFkRecord |
| 106 | 106 | { |
| 107 | - const TABLE='skills'; |
|
| 108 | - public $skill_id; |
|
| 109 | - public $name; |
|
| 107 | + const TABLE='skills'; |
|
| 108 | + public $skill_id; |
|
| 109 | + public $name; |
|
| 110 | 110 | |
| 111 | - public $players=array(); |
|
| 111 | + public $players=array(); |
|
| 112 | 112 | |
| 113 | - public static $RELATIONS=array |
|
| 114 | - ( |
|
| 115 | - 'players' => array(self::MANY_TO_MANY, 'PlayerRecord', 'player_skills'), |
|
| 116 | - ); |
|
| 113 | + public static $RELATIONS=array |
|
| 114 | + ( |
|
| 115 | + 'players' => array(self::MANY_TO_MANY, 'PlayerRecord', 'player_skills'), |
|
| 116 | + ); |
|
| 117 | 117 | |
| 118 | - public static function finder($className=__CLASS__) |
|
| 119 | - { |
|
| 120 | - return parent::finder($className); |
|
| 121 | - } |
|
| 118 | + public static function finder($className=__CLASS__) |
|
| 119 | + { |
|
| 120 | + return parent::finder($className); |
|
| 121 | + } |
|
| 122 | 122 | |
| 123 | 123 | |
| 124 | 124 | } |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * Keeps track of the people in our Contact list. |
|
| 5 | - * |
|
| 6 | - * Starts with a standard Contact list and can add |
|
| 7 | - * new people to our list or change existing Contacts. |
|
| 8 | - * This class is for example purposes only, just to |
|
| 9 | - * show how to create a webservice |
|
| 10 | - */ |
|
| 4 | + * Keeps track of the people in our Contact list. |
|
| 5 | + * |
|
| 6 | + * Starts with a standard Contact list and can add |
|
| 7 | + * new people to our list or change existing Contacts. |
|
| 8 | + * This class is for example purposes only, just to |
|
| 9 | + * show how to create a webservice |
|
| 10 | + */ |
|
| 11 | 11 | class ContactManager{ |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -30,31 +30,31 @@ discard block |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * Gets the Contact with the given id. |
|
| 34 | - * @param int $id The id |
|
| 35 | - * @return Contact |
|
| 36 | - * @soapmethod |
|
| 37 | - */ |
|
| 33 | + * Gets the Contact with the given id. |
|
| 34 | + * @param int $id The id |
|
| 35 | + * @return Contact |
|
| 36 | + * @soapmethod |
|
| 37 | + */ |
|
| 38 | 38 | public function getContact($id) { |
| 39 | 39 | //get Contact from db |
| 40 | 40 | //might wanna throw an exception when it does not exists |
| 41 | 41 | throw new Exception("Contact '$id' not found"); |
| 42 | 42 | } |
| 43 | 43 | /** |
| 44 | - * Generates an new, empty Contact template |
|
| 45 | - * @return Contact |
|
| 46 | - * @soapmethod |
|
| 47 | - */ |
|
| 44 | + * Generates an new, empty Contact template |
|
| 45 | + * @return Contact |
|
| 46 | + * @soapmethod |
|
| 47 | + */ |
|
| 48 | 48 | public function newContact() { |
| 49 | 49 | return new Contact(); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * Saves a given Contact |
|
| 54 | - * @param Contact $Contact |
|
| 55 | - * @return boolean |
|
| 56 | - * @soapmethod |
|
| 57 | - */ |
|
| 53 | + * Saves a given Contact |
|
| 54 | + * @param Contact $Contact |
|
| 55 | + * @return boolean |
|
| 56 | + * @soapmethod |
|
| 57 | + */ |
|
| 58 | 58 | public function saveContact(Contact $Contact) { |
| 59 | 59 | //error_log(var_export($Contact,true)); |
| 60 | 60 | //$Contact->save(); |
@@ -83,13 +83,13 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * The Contact details for a person |
|
| 87 | - * |
|
| 88 | - * Stores the person's name, address and e-mail |
|
| 89 | - * This class is for example purposes only, just to |
|
| 90 | - * show how to create a webservice |
|
| 91 | - * |
|
| 92 | - */ |
|
| 86 | + * The Contact details for a person |
|
| 87 | + * |
|
| 88 | + * Stores the person's name, address and e-mail |
|
| 89 | + * This class is for example purposes only, just to |
|
| 90 | + * show how to create a webservice |
|
| 91 | + * |
|
| 92 | + */ |
|
| 93 | 93 | class Contact{ |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -99,57 +99,57 @@ discard block |
||
| 99 | 99 | public $id; |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * @var string $name |
|
| 102 | + * @var string $name |
|
| 103 | 103 | * @soapproperty |
| 104 | - */ |
|
| 104 | + */ |
|
| 105 | 105 | public $name; |
| 106 | 106 | |
| 107 | 107 | /** @var Address $address |
| 108 | 108 | * @soapproperty |
| 109 | - */ |
|
| 109 | + */ |
|
| 110 | 110 | public $address; |
| 111 | 111 | |
| 112 | 112 | /** @var string $email |
| 113 | 113 | * @soapproperty |
| 114 | - */ |
|
| 114 | + */ |
|
| 115 | 115 | public $email; |
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | - * saves a Contact |
|
| 119 | - * |
|
| 120 | - * @return void |
|
| 121 | - */ |
|
| 118 | + * saves a Contact |
|
| 119 | + * |
|
| 120 | + * @return void |
|
| 121 | + */ |
|
| 122 | 122 | public function save() { |
| 123 | 123 | //save Contact 2 db |
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | - * Stores an address |
|
| 129 | - * |
|
| 130 | - * An address consists of a street, number, zipcode and city. |
|
| 131 | - * This class is for example purposes only, just to |
|
| 132 | - * show how to create a webservice |
|
| 133 | - * |
|
| 134 | - */ |
|
| 128 | + * Stores an address |
|
| 129 | + * |
|
| 130 | + * An address consists of a street, number, zipcode and city. |
|
| 131 | + * This class is for example purposes only, just to |
|
| 132 | + * show how to create a webservice |
|
| 133 | + * |
|
| 134 | + */ |
|
| 135 | 135 | class Address{ |
| 136 | 136 | /** @var string $street |
| 137 | 137 | * @soapproperty |
| 138 | - */ |
|
| 138 | + */ |
|
| 139 | 139 | public $street; |
| 140 | 140 | |
| 141 | 141 | /** @var string $nr |
| 142 | 142 | * @soapproperty |
| 143 | - */ |
|
| 143 | + */ |
|
| 144 | 144 | public $nr; |
| 145 | 145 | |
| 146 | 146 | /** @var string $zipcode |
| 147 | 147 | * @soapproperty |
| 148 | - */ |
|
| 148 | + */ |
|
| 149 | 149 | public $zipcode; |
| 150 | 150 | |
| 151 | 151 | /** @var string $city |
| 152 | 152 | * @soapproperty |
| 153 | - */ |
|
| 153 | + */ |
|
| 154 | 154 | public $city; |
| 155 | 155 | } |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * ActiveRatingListTestCase.php |
|
| 4 | - * |
|
| 5 | - * @author Bradley Booms <[email protected]> |
|
| 6 | - * @version Creation Date: Oct 22, 2008 |
|
| 7 | - */ |
|
| 3 | + * ActiveRatingListTestCase.php |
|
| 4 | + * |
|
| 5 | + * @author Bradley Booms <[email protected]> |
|
| 6 | + * @version Creation Date: Oct 22, 2008 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * ActiveRatingListTestCase.php class |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | $this->byId($base.'ctl0')->click(); |
| 12 | 12 | $this->pause(800); |
| 13 | 13 | |
| 14 | - $this->assertEquals('', $this->byId($base.'ALB')->attribute('style')); |
|
| 15 | - $this->assertEquals('', $this->byCssSelector('span#acb span')->attribute('style')); |
|
| 16 | - $this->assertEquals('', $this->byCssSelector('span#arb span')->attribute('style')); |
|
| 14 | + $this->assertEquals('', $this->byId($base.'ALB')->attribute('style')); |
|
| 15 | + $this->assertEquals('', $this->byCssSelector('span#acb span')->attribute('style')); |
|
| 16 | + $this->assertEquals('', $this->byCssSelector('span#arb span')->attribute('style')); |
|
| 17 | 17 | } |
| 18 | 18 | } |