[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/test/tests/config/ -> configfilestorage_test.class.php (sommaire)

(pas de description)

Poids: 239 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ConfigFileStorage_Test:: (12 méthodes):
  setUp()
  tearDown()
  createFile()
  testGetSingleQuotesValue()
  testGetDoubleQuotesValue()
  testSetNewValue()
  testSaveValue()
  testSaveDoubleQuotesValue()
  testSaveValueWithSingleQuotes()
  testSaveValueWithDoubleQuotes()
  testSaveValueWithDollarSign()
  testGetValueWithDefaultValue()


Classe: ConfigFileStorage_Test  - X-Ref

\ingroup Test

Test cases for the ConfigFileStorage class.

It includes regression test for svn revisions 3768 and 3799
setUp()   X-Ref
Creates a temporary test configuration file using both single quotes
and double quotes


tearDown()   X-Ref
delete the temporary file that was created


createFile( $file, $data )   X-Ref


testGetSingleQuotesValue()   X-Ref
Check if the file was loaded properly and loads a value from a line
with single quotes


testGetDoubleQuotesValue()   X-Ref
Check if the file was loaded properly and loads a value from a line
with double quotes


testSetNewValue()   X-Ref
test whether new values are kept properly after loading the file


testSaveValue()   X-Ref
test whether new values for keys defined with single quotes are saved properly back to the file


testSaveDoubleQuotesValue()   X-Ref
test whether new values for keys defined with double quotes are saved properly back to the file


testSaveValueWithSingleQuotes()   X-Ref
Saves a value with single quotes, to check whether they're being escaped properly


testSaveValueWithDoubleQuotes()   X-Ref
Saves a value with double quotes, to check whether they're being escaped properly


testSaveValueWithDollarSign()   X-Ref
Saves a value with a dollar sign


testGetValueWithDefaultValue()   X-Ref
regression test for svn revision 3726. It basically tests whether the ConfigFileStorage::getValue()
method will return the default value specified as the second parameter when the provided
key doesn't exist.




Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics