Class MockNarutoTest

Description

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

Located in /tests/mockNarutoTest.php (line 25)

PHPUnit_Framework_TestCase
   |
   --MockNarutoTest
Direct descendents
Class Description
restNarutoNetTest This class is just like the restNarutoTest except it functions over a network.
RestNarutoTest This class defined the test for the RestNaruto class using the virtual Binder to connect them.
Method Summary
void compareForumAndArray ( $forum,  $arr)
void compareForumLists ( $forums,  $arrs)
void compareSimpleMaps ( $type,  $a,  $b)
void compareTopicAndArray ( $topic,  $arr)
void compareTopicLists ( $topics,  $arrs)
void compareUserAndArray ( $user,  $arr,  $check_email)
void setUp ()
void testGetTopic ()
void testGetUser ()
void testHackerLogin ()
Methods
compareForumAndArray (line 358)
  • access: public
void compareForumAndArray ( $forum,  $arr)
  • $forum
  • $arr
compareForumLists (line 254)
  • access: public
void compareForumLists ( $forums,  $arrs)
  • $forums
  • $arrs
compareSimpleMaps (line 295)
  • access: public
void compareSimpleMaps ( $type,  $a,  $b)
  • $type
  • $a
  • $b
compareTopicAndArray (line 417)
  • access: public
void compareTopicAndArray ( $topic,  $arr)
  • $topic
  • $arr
compareTopicLists (line 318)
  • access: public
void compareTopicLists ( $topics,  $arrs)
  • $topics
  • $arrs
compareUserAndArray (line 456)
  • access: public
void compareUserAndArray ( $user,  $arr,  $check_email)
  • $user
  • $arr
  • $check_email
setUp (line 27)
  • access: public
void setUp ()

Redefined in descendants as:
testAddForumTopic (line 180)

Testing getting the topic form forum 1 with list with no options.

  • access: public
void testAddForumTopic ()
testAddTopicPost (line 221)

Testing addTopicPost

  • access: public
void testAddTopicPost ()
testGetForumList (line 39)

Testing getting the forum list with no options.

  • access: public
void testGetForumList ()
testGetForumListWithParent (line 145)

Testing getting the forum list with parent.

  • access: public
void testGetForumListWithParent ()
testGetRecentTopics (line 158)

Testing getting the recent topics with no options.

  • access: public
void testGetRecentTopics ()
testGetTopic (line 50)

Testing getting the topic by id.

  • access: public
void testGetTopic ()
testGetTopicList (line 169)

Testing getting the topic form forum 1 with list with no options.

  • access: public
void testGetTopicList ()
testGetTopicListWithLimit (line 193)

Testing getting the topic form forum 1 with list with limit 2.

  • access: public
void testGetTopicListWithLimit ()
testGetTopicListWithLimitAndOffset (line 207)

Testing getting the topic form forum 1 with list with limit 1 and offset 1.

  • access: public
void testGetTopicListWithLimitAndOffset ()
testGetUnreadPrivateMessageCount (line 248)

Testing getUnreadPrivateMessageCount

  • access: public
void testGetUnreadPrivateMessageCount ()
testGetUser (line 61)

Testing getting the user by id.

  • access: public
void testGetUser ()
testGetUserByName (line 72)

Testing getting the user by name.

  • access: public
void testGetUserByName ()
testGetUserByNameWithEmail (line 107)

Testing getting the user by name with email.

  • access: public
void testGetUserByNameWithEmail ()
testGetUserBySession (line 83)

Testing getting the user by session.

  • access: public
void testGetUserBySession ()
testGetUserBySessionWithEmail (line 120)

Testing getting the user by session with email.

  • access: public
void testGetUserBySessionWithEmail ()
testGetUserWithEmail (line 94)

Testing getting the user by id with email.

  • access: public
void testGetUserWithEmail ()
testHackerLogin (line 136)

Testing a bad login

  • expectedException: NarutoException
  • access: public
void testHackerLogin ()
testMergeTopicsFalse (line 239)

Testing mergeTopics False

  • access: public
void testMergeTopicsFalse ()
testMergeTopicsTrue (line 230)

Testing mergeTopics True

  • access: public
void testMergeTopicsTrue ()

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