Class NarutoCredentialsTest

Description

This class defines all the unit tests for the NarutoCredentials class.

Located in /tests/narutoCredentialsTest.php (line 20)

PHPUnit_Framework_TestCase
   |
   --NarutoCredentialsTest
Method Summary
Methods
testStage1GetUserName (line 27)

In this test we try to validate user name function at stage 1.

  • access: public
void testStage1GetUserName ()
testStep1PositiveFlow (line 38)

In this test we try to validate user with a correct password at stage 1.

  • access: public
void testStep1PositiveFlow ()
testStep1PositiveFlowEmptyPassword (line 50)

In this test we try to validate user with a correct password at stage 1.

  • access: public
void testStep1PositiveFlowEmptyPassword ()
testStep1WrongPassword (line 62)

In this test we try to validate user with a wrong password at stage 1.

  • access: public
void testStep1WrongPassword ()
testStep2BrokenFlowExportAfterImport (line 86)

In this test we try to export a token without setting the credentials

  • expectedException: NarutoException
  • access: public
void testStep2BrokenFlowExportAfterImport ()
testStep2BrokenFlowExportNoCred (line 75)

In this test we try to export a token without setting the credentials

  • expectedException: NarutoException
  • access: public
void testStep2BrokenFlowExportNoCred ()
testStep2BrokenFlowValidateEmpty (line 105)

In this test we try to validate a user without a token import or the setting of credentials.

  • expectedException: NarutoException
  • access: public
void testStep2BrokenFlowValidateEmpty ()
testStep3BadPassword (line 178)

In this case we take the flow all the way through step 3 with incorrect password.

  • access: public
void testStep3BadPassword ()
testStep3BadSalt (line 193)

In this case we take the flow all the way through step 3 with incorrect salt.

  • access: public
void testStep3BadSalt ()
testStep3BadSaltEmptyPassword (line 208)

In this case we take the flow all the way through step 3 with incorrect salt and empty password.

  • access: public
void testStep3BadSaltEmptyPassword ()
testStep3EmptyToken (line 131)

In this case we create a import with an empty string.

  • expectedException: NarutoException
  • access: public
void testStep3EmptyToken ()
testStep3GetUserName (line 224)

In this case we take the flow all the way through step 3 with incorrect salt.

  • access: public
void testStep3GetUserName ()
testStep3PositiveFlow (line 115)

In this case we take the flow all the way through step 3 which is the most likely flow.

  • access: public
void testStep3PositiveFlow ()
testStep3PositiveFlowEmptyPassword (line 163)

In this case we take the flow all the way through step 3 wiith empty password.

  • access: public
void testStep3PositiveFlowEmptyPassword ()
testStep3ShortToken (line 142)

In this case we create a import with a too short string.

  • expectedException: NarutoException
  • access: public
void testStep3ShortToken ()
testStep3WrongType (line 153)

In this case we create a import with a wrong type 0.

  • expectedException: NarutoException
  • access: public
void testStep3WrongType ()

Documentation generated on Sun, 26 Oct 2008 16:41:11 -0400 by phpDocumentor 1.4.2