org.puremvc.php
[ class tree: org.puremvc.php ] [ index: org.puremvc.php ] [ all elements ]

Class: ModelTest

Source Location: /org/puremvc/php/core/ModelTest.php

Class Overview

PHPUnit_Framework_TestCase
   |
   --ModelTest

Test the PureMVC Model class.


Methods



Class Details

[line 17]
Test the PureMVC Model class.



[ Top ]


Class Methods


constructor __construct [line 49]

ModelTest __construct( )

Constructs the test case.



Tags:

access:  public


[ Top ]

method setUp [line 33]

void setUp( )

Prepares the environment before running a test.



Tags:

access:  protected


[ Top ]

method tearDown [line 41]

void tearDown( )

Cleans up the environment after running a test.



Tags:

access:  protected


[ Top ]

method testGetInstance [line 56]

void testGetInstance( )

Tests the Model Singleton Factory Method



Tags:

access:  public


[ Top ]

method testHasProxy [line 131]

void testHasProxy( )

Tests the hasProxy Method



Tags:

access:  public


[ Top ]

method testOnRegisterAndOnRemove [line 155]

void testOnRegisterAndOnRemove( )

Tests that the Model calls the onRegister and onRemove methods.



Tags:

access:  public


[ Top ]

method testRegisterAndRemoveProxy [line 107]

void testRegisterAndRemoveProxy( )

Tests the proxy removal method.



Tags:

access:  public


[ Top ]

method testRegisterAndRetrieveProxy [line 87]

void testRegisterAndRetrieveProxy( )

Tests the proxy registration and retrieval methods.

Tests

  1. registerProxy
and
  1. retrieveProxy
in the same test. These methods cannot currently be tested separately in any meaningful way other than to show that the methods do not throw exception when called.




Tags:

access:  public


[ Top ]


Documentation generated on Mon, 29 Sep 2008 15:06:19 -0700 by phpDocumentor 1.4.0