Alpha Framework alpha--tests
[ class tree: alpha--tests ] [ index: alpha--tests ] [ all elements ]

Class: AlphaValidator_Test

Source Location: /tests/AlphaValidator_Test.php

Class AlphaValidator_Test

Class Overview

Test case for the AlphaValidator helper class

Located in /tests/AlphaValidator_Test.php [line 50]

PHPUnit_Framework_TestCase
   |
   --AlphaValidator_Test
Author(s):
  • John Collins <dev@alphaframework.org>
Information Tags:
Version:  $Id: AlphaValidator_Test.php 1341 2011-03-17 15:02:02Z johnc $
Copyright:  

Copyright (c) 2011, John Collins (founder of Alpha Framework). All rights reserved.

 Redistribution and use in source and binary forms, with or
 without modification, are permitted provided that the
 following conditions are met:

 * Redistributions of source code must retain the above
   copyright notice, this list of conditions and the
   following disclaimer.
 * Redistributions in binary form must reproduce the above
   copyright notice, this list of conditions and the
   following disclaimer in the documentation and/or other
   materials provided with the distribution.
 * Neither the name of the Alpha Framework nor the names
   of its contributors may be used to endorse or promote
   products derived from this software without specific
   prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
 CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Since:  1.0
License:  The BSD License

Methods

[ Top ]
Method Summary
void   testIsAlpha()   Validate that the provided value is a valid alphabetic string (strictly a-zA-Z)
void   testIsAlphaNum()   Validate that the provided value is a valid alpha-numeric string (strictly a-zA-Z0-9)
void   testIsBoolean()   Validate that the provided value is a valid boolean
void   testIsDouble()   Validate that the provided value is a valid double
void   testIsEmail()   Validate that the provided value is a valid email address
void   testIsInteger()   Validate that the provided value is a valid integer
void   testIsIP()   Validate that the provided value is a valid IP address
void   testIsSequence()   Validate that the provided value is a valid Sequence value
void   testIsURL()   Validate that the provided value is a valid URL

[ Top ]
Methods
testIsAlpha  [line 101]

  void testIsAlpha( )

Validate that the provided value is a valid alphabetic string (strictly a-zA-Z)


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]
testIsAlphaNum  [line 115]

  void testIsAlphaNum( )

Validate that the provided value is a valid alpha-numeric string (strictly a-zA-Z0-9)


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]
testIsBoolean  [line 87]

  void testIsBoolean( )

Validate that the provided value is a valid boolean


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]
testIsDouble  [line 73]

  void testIsDouble( )

Validate that the provided value is a valid double


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]
testIsEmail  [line 157]

  void testIsEmail( )

Validate that the provided value is a valid email address


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]
testIsInteger  [line 56]

  void testIsInteger( )

Validate that the provided value is a valid integer


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]
testIsIP  [line 143]

  void testIsIP( )

Validate that the provided value is a valid IP address


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]
testIsSequence  [line 171]

  void testIsSequence( )

Validate that the provided value is a valid Sequence value


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]
testIsURL  [line 129]

  void testIsURL( )

Validate that the provided value is a valid URL


API Tags:
Access:  public

Information Tags:
Since:  1.0

[ Top ]

Documentation generated on Thu, 17 Mar 2011 16:43:43 +0000 by phpDocumentor 1.4.3