Skip to content
Browse files

Formatting doc blocks.

Standardising version and packages throughout.
  • Loading branch information...
1 parent 91977a3 commit e3debd050978d1eaf7890dbbfac29f475312f821 @predominant predominant committed
Showing with 370 additions and 65 deletions.
  1. +10 −2 libs/au_validation.php
  2. +10 −2 libs/bd_validation.php
  3. +10 −2 libs/be_validation.php
  4. +12 −4 libs/br_validation.php
  5. +10 −2 libs/ca_validation.php
  6. +10 −2 libs/cz_validation.php
  7. +10 −2 libs/de_validation.php
  8. +10 −2 libs/dk_validation.php
  9. +10 −2 libs/es_validation.php
  10. +10 −2 libs/fr_validation.php
  11. +11 −3 libs/it_validation.php
  12. +10 −2 libs/jp_validation.php
  13. +8 −1 libs/mx_validation.php
  14. +12 −4 libs/nl_validation.php
  15. +10 −1 libs/pl_validation.php
  16. +10 −2 libs/sk_validation.php
  17. +12 −4 libs/tw_validation.php
  18. +10 −2 libs/uk_validation.php
  19. +12 −4 libs/us_validation.php
  20. +9 −1 tests/cases/libs/au_validation.test.php
  21. +9 −1 tests/cases/libs/bd_validation.test.php
  22. +9 −1 tests/cases/libs/be_validation.test.php
  23. +11 −1 tests/cases/libs/br_validation.test.php
  24. +9 −1 tests/cases/libs/ca_validation.test.php
  25. +9 −1 tests/cases/libs/cz_validation.test.php
  26. +9 −1 tests/cases/libs/de_validation.test.php
  27. +9 −1 tests/cases/libs/dk_validation.test.php
  28. +9 −1 tests/cases/libs/es_validation.test.php
  29. +9 −1 tests/cases/libs/fr_validation.test.php
  30. +10 −1 tests/cases/libs/it_validation.test.php
  31. +9 −1 tests/cases/libs/jp_validation.test.php
  32. +2 −2 tests/cases/libs/mx_validation.test.php
  33. +11 −1 tests/cases/libs/nl_validation.test.php
  34. +9 −1 tests/cases/libs/pl_validation.test.php
  35. +9 −1 tests/cases/libs/sk_validation.test.php
  36. +11 −1 tests/cases/libs/tw_validation.test.php
  37. +9 −1 tests/cases/libs/uk_validation.test.php
  38. +11 −1 tests/cases/libs/us_validation.test.php
View
12 libs/au_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * AuValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class AuValidation {
/**
* Checks Postal Codes for Australia
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{4}$/i';
View
12 libs/bd_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * BdValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class BdValidation {
/**
* Checks zipcodes for Bangladesh
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^\d{4}$/';
View
12 libs/be_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * BeValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class BeValidation {
/**
* Checks zipcodes for Belgium
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[1-9]{1}[0-9]{3}$/i';
View
16 libs/br_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * BrValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class BrValidation {
/**
* Checks phone numbers for Brazil
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
return (bool)preg_match('/^(\+?\d{1,3}? ?)?(\(0?\d{2}\) ?)?\d{4}[-. ]?\d{4}$/', $check);
@@ -33,8 +41,8 @@ function phone($check) {
* Checks zipcodes (CEP) for Brazil
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
return (bool)preg_match('/^[0-9]{5}-?[0-9]{3}$/', $check);
@@ -44,8 +52,8 @@ function postal($check) {
* Checks cadastro de pessoa física (CPF) for Brazil
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function ssn($check) {
$check = str_replace(array(' ', '-', '.'), '', $check);
View
12 libs/ca_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * CaValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class CaValidation {
/**
* Checks zipcodes for Canada
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/\\A\\b[ABCEGHJKLMNPRSTVXY][0-9][A-Z] [0-9][A-Z][0-9]\\b\\z/i';
View
12 libs/cz_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * CzValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class CzValidation {
/**
* Checks zipcodes for Czech Republic
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[1-7]\d{2} ?\d{2}$/i';
View
12 libs/de_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * DeValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class DeValidation {
/**
* Checks zipcodes for Germany
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{5}$/i';
View
12 libs/dk_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * DkValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class DkValidation {
/**
* Checks social security numbers for Denmark
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function ssn($check) {
$pattern = '/\\A\\b[0-9]{6}-[0-9]{4}\\b\\z/i';
View
12 libs/es_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * EsValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class EsValidation {
/**
* Checks phone numbers for Spain
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^\\+?(34[-. ]?)?\\(?(([689]{1})(([0-9]{2})\\)?[-. ]?|([0-9]{1})\\)?[-. ]?([0-9]{1}))|70\\)?[-. ]?([0-9]{1}))([0-9]{2})[-. ]?([0-9]{1})[-. ]?([0-9]{1})[-. ]?([0-9]{2})$/';
View
12 libs/fr_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * FrValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class FrValidation {
/**
* Checks phone numbers for France
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^0[1-6]{1}(([0-9]{2}){4})|((\s[0-9]{2}){4})|((-[0-9]{2}){4})$/';
View
14 libs/it_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * ItValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class ItValidation {
/**
* Checks phone numbers for Italy
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^([0-9]*\-?\ ?\/?[0-9]*)$/';
@@ -34,8 +42,8 @@ function phone($check) {
* Checks zipcodes for Italy
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{5}$/i';
View
12 libs/jp_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * JpValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class JpValidation {
/**
* Checks zipcodes for Japan
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{3}-[0-9]{4}$/';
View
9 libs/mx_validation.php
@@ -13,10 +13,17 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @subpackage localized.libs
+ * @subpackage localized.tests.cases.libs
* @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * MxValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class MxValidation {
/**
View
16 libs/nl_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * NlValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class NlValidation {
/**
* Checks phone numbers for The Netherlands
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^0(6[\s-]?[1-9]\d{7}|[1-9]\d[\s-]?[1-9]\d{6}|[1-9]\d{2}[\s-]?[1-9]\d{5})$/';
@@ -34,8 +42,8 @@ function phone($check) {
* Checks zipcodes for The Netherlands
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[1-9][0-9]{3}\s?[A-Z]{2}$/i';
@@ -46,8 +54,8 @@ function postal($check) {
* Checks social security numbers (BSN) for The Netherlands
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function ssn($check) {
$pattern = '/\\A\\b[0-9]{9}\\b\\z/i';
View
11 libs/pl_validation.php
@@ -13,9 +13,17 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * PlValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class PlValidation {
/**
@@ -23,6 +31,7 @@ class PlValidation {
*
* @param string $check Value to check
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0-9]{2}-[0-9]{3}$/D';
View
12 libs/sk_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * SkValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class SkValidation {
/**
* Checks zipcodes for Slovakia
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[0,8,9]\d{2} ?\d{2}$/i';
View
16 libs/tw_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * TwValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class TwValidation {
/**
* Checks phone numbers for Taiwan
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^\\(?(0|\\+886)[-. ]?[2-9][\\)-. ]?([0-9][\\)-. ]?){2}([0-9][-. ]?){3}[0-9]{2}[0-9]?$/';
@@ -34,8 +42,8 @@ function phone($check) {
* Checks zipcodes for Taiwan
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/^[1-9][0-9]{2}([0-9]{2})?$/';
@@ -46,8 +54,8 @@ function postal($check) {
* Checks national identify card number for Taiwan
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function nicn($check) {
$check = strtoupper($check);
View
12 libs/uk_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * UkValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class UkValidation {
/**
* Checks zipcodes for The United Kingdom
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/\\A\\b[A-Z]{1,2}[0-9][A-Z0-9]? [0-9][ABD-HJLNP-UW-Z]{2}\\b\\z/i';
View
16 libs/us_validation.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
+
+/**
+ * UsValidation
+ *
+ * @package localized
+ * @subpackage localized.tests.cases.libs
+ */
class UsValidation {
/**
* Checks phone numbers for The United States
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function phone($check) {
$pattern = '/^(?:\+?1)?[-. ]?\\(?[2-9][0-8][0-9]\\)?[-. ]?[2-9][0-9]{2}[-. ]?[0-9]{4}$/';
@@ -34,8 +42,8 @@ function phone($check) {
* Checks zipcodes for The United States
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function postal($check) {
$pattern = '/\\A\\b[0-9]{5}(?:-[0-9]{4})?\\b\\z/i';
@@ -46,8 +54,8 @@ function postal($check) {
* Checks social security numbers for The United States
*
* @param string $check The value to check.
- * @access public
* @return boolean
+ * @access public
*/
function ssn($check) {
$pattern = '/\\A\\b[0-9]{3}-[0-9]{2}-[0-9]{4}\\b\\z/i';
View
10 tests/cases/libs/au_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.AuValidation');
+/**
+ * AuValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class AuValidationTestCase extends CakeTestCase {
/**
* test the postal method of AuValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(AuValidation::postal('2300'));
View
10 tests/cases/libs/bd_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.BdValidation');
+/**
+ * BdValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class BdValidationTestCase extends CakeTestCase {
/**
* test the postal method of BdValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(BdValidation::postal('1200'));
View
10 tests/cases/libs/be_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.BeValidation');
+/**
+ * BeValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class BeValidationTestCase extends CakeTestCase {
/**
* test the postal method of BeValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(BeValidation::postal('1804'));
View
12 tests/cases/libs/br_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.BrValidation');
+/**
+ * BrValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class BrValidationTest extends CakeTestCase {
/**
* test the phone method of BrValidation
*
* @return void
+ * @access public
*/
function testPhone() {
$this->assertFalse(BrValidation::phone('teststring'));
@@ -50,6 +58,7 @@ function testPhone() {
* test the postal method of BrValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertFalse(BrValidation::postal('111'));
@@ -66,6 +75,7 @@ function testPostal() {
* test the ssn method of BrValidation
*
* @return void
+ * @access public
*/
function testSsn() {
$this->assertFalse(BrValidation::ssn('22692173811'));
View
10 tests/cases/libs/ca_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.CaValidation');
+/**
+ * CaValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class CaValidationTestCase extends CakeTestCase {
/**
* test the postal method of CaValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(CaValidation::postal('L4W 1S2'));
View
10 tests/cases/libs/cz_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.CzValidation');
+/**
+ * CzValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class CzValidationTestCase extends CakeTestCase {
/**
* test the postal method of CzValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(CzValidation::postal('123 45'));
View
10 tests/cases/libs/de_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.DeValidation');
+/**
+ * DeValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class DeValidationTestCase extends CakeTestCase {
/**
* test the postal method of DeValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(DeValidation::postal('51109'));
View
10 tests/cases/libs/dk_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.DkValidation');
+/**
+ * DkValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class DkValidationTestCase extends CakeTestCase {
/**
* test the ssn method of DkValidation
*
* @return void
+ * @access public
*/
function testSsn() {
$this->assertTrue(DkValidation::ssn('111111-3334'));
View
10 tests/cases/libs/es_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.EsValidation');
+/**
+ * EsValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class EsValidationTestCase extends CakeTestCase {
/**
* test the phone method of EsValidation
*
* @return void
+ * @access public
*/
function testPhone() {
$this->assertTrue(EsValidation::phone('924227227'));
View
10 tests/cases/libs/fr_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.FrValidation');
+/**
+ * FrValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class FrValidationTestCase extends CakeTestCase {
/**
* test the phone method of FrValidation
*
* @return void
+ * @access public
*/
function testPhone() {
$this->assertTrue(FrValidation::phone('04 76 96 12 32'));
View
11 tests/cases/libs/it_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.ItValidation');
+/**
+ * ItValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class ItValidationTestCase extends CakeTestCase {
/**
* test the phone method of ItValidation
*
* @return void
+ * @access public
*/
function testPhone() {
$this->assertTrue(ItValidation::phone('347/1233456'));
@@ -34,6 +42,7 @@ function testPhone() {
* test the postal method of ItValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(ItValidation::postal('10096'));
View
10 tests/cases/libs/jp_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.JpValidation');
+/**
+ * JpValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class JpValidationTestCase extends CakeTestCase {
/**
* test the postal method of JpValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(JpValidation::postal('020-5045'));
View
4 tests/cases/libs/mx_validation.test.php
@@ -22,8 +22,8 @@
/**
* Mexican Validation Test Case
*
- * @package localized
- * @subpackage localized.tests.cases.libs
+ * @package localization
+ * @subpackage localized.tests.cases.libs
*/
class MxValidationTestCase extends CakeTestCase {
View
12 tests/cases/libs/nl_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.NlValidation');
+/**
+ * NlValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class NlValidationTestCase extends CakeTestCase {
/**
* test the phone method of NlValidation
*
* @return void
+ * @access public
*/
function testPhone() {
$this->assertTrue(NlValidation::phone('020-5045100'));
@@ -39,6 +47,7 @@ function testPhone() {
* test the postal method of NlValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(NlValidation::postal('1620AB'));
@@ -55,6 +64,7 @@ function testPostal() {
* test the ssn method of NlValidation
*
* @return void
+ * @access public
*/
function testSsn() {
$this->assertTrue(NlValidation::ssn('187821321'));
View
10 tests/cases/libs/pl_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.PlValidation');
+/**
+ * PlValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class PlValidationTestCase extends CakeTestCase {
/**
* test the postal method of PlValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(PlValidation::postal('63-400'));
View
10 tests/cases/libs/sk_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.SkValidation');
+/**
+ * SkValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class SkValidationTestCase extends CakeTestCase {
/**
* test the postal method of SkValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(SkValidation::postal('95616'));
View
12 tests/cases/libs/tw_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.TwValidation');
+/**
+ * TwValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class TwValidationTestCase extends CakeTestCase {
/**
* test the phone method of TwValidation
*
* @return void
+ * @access public
*/
function testPhone() {
$this->assertTrue(TwValidation::phone('+886277388066'));
@@ -42,6 +50,7 @@ function testPhone() {
* test the postal method of TwValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(TwValidation::postal('235'));
@@ -55,6 +64,7 @@ function testPostal() {
* test the ssn method of TwValidation
*
* @return void
+ * @access public
*/
function testNicn() {
$this->assertTrue(TwValidation::nicn('Y100000001'));
View
10 tests/cases/libs/uk_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.UkValidation');
+/**
+ * UkValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class UkValidationTestCase extends CakeTestCase {
/**
* test the postal method of UkValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(UkValidation::postal('DT4 8PP'));
View
12 tests/cases/libs/us_validation.test.php
@@ -13,17 +13,25 @@
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org
* @package localized
- * @since localized 0.1
+ * @subpackage localized.tests.cases.libs
+ * @since Localized Plugin v 0.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Lib', 'Localized.UsValidation');
+/**
+ * UsValidationTestCase
+ *
+ * @package localization
+ * @subpackage localized.tests.cases.libs
+ */
class UsValidationTestCase extends CakeTestCase {
/**
* test the phone method of UsValidation
*
* @return void
+ * @access public
*/
function testPhone() {
$this->assertTrue(UsValidation::phone('+1 702 425 5085'));
@@ -57,6 +65,7 @@ function testPhone() {
* test the postal method of UsValidation
*
* @return void
+ * @access public
*/
function testPostal() {
$this->assertTrue(UsValidation::postal('89104'));
@@ -74,6 +83,7 @@ function testPostal() {
* test the ssn method of UsValidation
*
* @return void
+ * @access public
*/
function testSsn() {
$this->assertFalse(UsValidation::ssn('11-33-4333'));

0 comments on commit e3debd0

Please sign in to comment.
Something went wrong with that request. Please try again.