Adding tests for securing private variable inclussion on templates.
[akelos.git] / test / unit / lib / utils / _Ak_var_manipulation.php
blob6ea7b3ec1ddb6f36d934d6a0c446d721c2b5e9e2
1 <?php
3 require_once(dirname(__FILE__).'/../../../fixtures/config/config.php');
4 require_once(AK_LIB_DIR.DS.'Ak.php');
6 class test_Ak_var_manipulation extends UnitTestCase
8 function test_for_to_array()
10 $this->assertEqual(Ak::toArray('es,en,va'),array('es','en','va'));
13 function test_for_string_to_array()
15 $this->assertEqual(Ak::stringToArray('es,en,va'),array('es','en','va'));
16 $this->assertEqual(Ak::stringToArray('es , en , va'),array('es','en','va'));
22 ak_test('test_Ak_var_manipulation');