| alpha--tests

# Class: FrontController_Test Source Location: /tests/FrontController_Test.php ## Class FrontController_Test Class Overview
Test cases for the AlphaController class. Located in /tests/FrontController_Test.php [line 51]
    PHPUnit_Framework_TestCase
       |
       --FrontController_Test
Author(s): John Collins <dev@alphaframework.org> Information Tags:
Version: | $Id: FrontController_Test.php 1453 2011-12-04 15:12:54Z 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 setUp tearDown testAccessingAliasParamNames testConstructActParam testConstructModRewrite testConstructModRewriteWithAlias testConstructorModRewriteWithEncryptedToken testConstructorWithEncryptedToken testDecodeQueryParams testDefineAlias testEncodeQuery testGetDecodeQueryParams testLoadControllerFileNotFound testRegisterFilterBad testRegisterFilterGood
[ Top ] Method Summary
void | setUp() | (non-PHPdoc)
void | tearDown() | (non-PHPdoc)
void | testAccessingAliasParamNames() | Testing the accessing of the expected param for a given alias/controller
void | testConstructActParam() | Testing that the constructor will detect the page controller action we want to invoke from the global _GET array
void | testConstructModRewrite() | Testing that the constructor can parse the correct page controller action from a mod_rewrite style URL
void | testConstructModRewriteWithAlias() | Testing that the constructor can parse the correct page controller action from a mod_rewrite style URL when a controller alias is used
void | testConstructorModRewriteWithEncryptedToken() | Testing that the constructor can parse the correct page controller action from an encrypted token param provided on a mod-rewrite style URL
void | testConstructorWithEncryptedToken() | Testing that the constructor can parse the correct page controller action from an encrypted token param
void | testDecodeQueryParams() | Testing the decodeQueryParams method with a known encrypted result for a test key
void | testDefineAlias() | Testing the setting up and checking for the existence of a controller alias
void | testEncodeQuery() | Testing the encodeQuery method with a known encrypted result for a test key
void | testGetDecodeQueryParams() | Testing that the getDecodeQueryParams method will return the known params with a known encrypted result for a test key
void | testLoadControllerFileNotFound() | Testing that a request to a bad URL will result in a ResourceNotFoundException exception
void | testRegisterFilterBad() | Testing the registerFilter method with a bad filter object
void | testRegisterFilterGood() | Testing the registerFilter method with a valid filter object
[ Top ] Methods setUp [line 66]
`void setUp( )`
(non-PHPdoc) API Tags:
See: | alpha/lib/PEAR/PHPUnit-3.2.9/PHPUnit/Framework/PHPUnit_Framework_TestCase::setUp()
Access: | protected
Information Tags:
Since: | 1.0
[ Top ] tearDown [line 79]
`void tearDown( )`
(non-PHPdoc) API Tags:
See: | alpha/lib/PEAR/PHPUnit-3.2.9/PHPUnit/Framework/PHPUnit_Framework_TestCase::tearDown()
Access: | protected
Information Tags:
Since: | 1.0
[ Top ] testAccessingAliasParamNames [line 249]
`void testAccessingAliasParamNames( )`
Testing the accessing of the expected param for a given alias/controller API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testConstructActParam [line 88]
`void testConstructActParam( )`
Testing that the constructor will detect the page controller action we want to invoke from the global _GET array API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testConstructModRewrite [line 100]
`void testConstructModRewrite( )`
Testing that the constructor can parse the correct page controller action from a mod_rewrite style URL API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testConstructModRewriteWithAlias [line 115]
`void testConstructModRewriteWithAlias( )`
Testing that the constructor can parse the correct page controller action from a mod_rewrite style URL when a controller alias is used API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testConstructorModRewriteWithEncryptedToken [line 146]
`void testConstructorModRewriteWithEncryptedToken( )`
Testing that the constructor can parse the correct page controller action from an encrypted token param provided on a mod-rewrite style URL API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testConstructorWithEncryptedToken [line 131]
`void testConstructorWithEncryptedToken( )`
Testing that the constructor can parse the correct page controller action from an encrypted token param API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testDecodeQueryParams [line 179]
`void testDecodeQueryParams( )`
Testing the decodeQueryParams method with a known encrypted result for a test key API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testDefineAlias [line 232]
`void testDefineAlias( )`
Testing the setting up and checking for the existence of a controller alias API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testEncodeQuery [line 162]
`void testEncodeQuery( )`
Testing the encodeQuery method with a known encrypted result for a test key API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testGetDecodeQueryParams [line 194]
`void testGetDecodeQueryParams( )`
Testing that the getDecodeQueryParams method will return the known params with a known encrypted result for a test key API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testLoadControllerFileNotFound [line 212]
`void testLoadControllerFileNotFound( )`
Testing that a request to a bad URL will result in a ResourceNotFoundException exception API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testRegisterFilterBad [line 284]
`void testRegisterFilterBad( )`
Testing the registerFilter method with a bad filter object API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] testRegisterFilterGood [line 262]
`void testRegisterFilterGood( )`
Testing the registerFilter method with a valid filter object API Tags:
Access: | public
Information Tags:
Since: | 1.0
[ Top ] Documentation generated on Tue, 13 Dec 2011 20:26:57 +0000 by phpDocumentor 1.4.3