PhpMyObject
[ class tree: PhpMyObject ] [ index: PhpMyObject ] [ all elements ]

Class: PMO_MyTest

Source Location: /fichiers/v0.15/PMO_tests/tests/PMO_MyTest.php

Class Overview

UnitTestCase
   |
   --PMO_MyTest

we need this class to provide some general setUp and tearDown plus some helper methods.


Methods


Child classes:

PMO_MyController_Test
tests the PMO_MyController class
PMO_MyObject_Test
Tests the PMO_MyObject class
PMO_MyObject_attributes_test
we need this class to provide some general setUp and tearDown plus some helper methods.
PMO_MyObject_get_objects_Test
we need this class to provide some general setUp and tearDown plus some helper methods.
PMO_MyRequest_Test
tests the PMO_MyRequest class

Class Details

[line 48]
we need this class to provide some general setUp and tearDown plus some helper methods.

Unfortunately, we can't make this an abstract class since it has to extends the UnitTestCase class.




[ Top ]


Class Methods


constructor __construct [line 51]

PMO_MyTest __construct( )



Tags:

access:  public


Overridden in child classes as:

PMO_MyController_Test::__construct()
PMO_MyObject_Test::__construct()
constructor calls parent contructor.
PMO_MyObject_attributes_test::__construct()
PMO_MyRequest_Test::__construct()

[ Top ]

method resetSqliteActor [line 66]

void resetSqliteActor( )

destroys and recretes the sqlite table actor



Tags:

access:  protected


[ Top ]

method setConfig [line 99]

void setConfig( string $type, [string $base = 'sakila'])

this is used to set a database for inserts/updates/deletes we want to keep sakila pristine so we know in advance what data we have



Tags:

access:  protected


Parameters:

string   $type   mysql|sqlite
string   $base   database to use, sakila or pmo_test

[ Top ]

method setData [line 82]

void setData( )

loads the sql to drop and recreate the sqlite actor tab,e



Tags:

access:  protected


[ Top ]

method setUp [line 56]

void setUp( )



[ Top ]

method tearDown [line 61]

void tearDown( )



[ Top ]


Documentation generated on Wed, 15 Oct 2008 09:17:58 -0400 by phpDocumentor 1.4.1