ultimix
Main Page
Data Structures
Files
Examples
File List
Globals
unit_tests.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This source code is a part of the Ultimix Project.
5
* It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6
* it's own license wich could be found from the corresponding files or sources.
7
* This source code is provided "as is" without any warranties or garanties.
8
*
9
* Have a nice day!
10
*
11
* @url http://ultimix.sorceforge.net
12
*
13
* @author Alexey "gdever" Dodonov
14
*/
15
26
class
unit_tests
{
27
28
var
$ContentMarkup
=
false
;
29
40
function
set_up
()
41
{
42
$this->ContentMarkup =
get_package
(
'content::content_markup'
,
'last'
, __FILE__ );
43
}
44
55
function
tear_down
()
56
{
57
}
58
69
function
test_load_package
()
70
{
71
get_package
(
'content::content_markup'
,
'last'
, __FILE__ );
72
73
return
(
'TEST PASSED'
);
74
}
75
86
function
test_function_size
()
87
{
88
try
89
{
90
$Changed =
false
;
91
$Str =
'{content_links:category=news}'
;
92
93
list( $Str , $Changed ) = this->ContentMarkup->process_content_links( $Str , $Changed );
94
95
if
( strpos( $Str ,
'Welcome'
) ===
false
)
96
{
97
print(
'ERROR'
);
98
}
99
else
100
{
101
print(
'TEST PASSED'
);
102
}
103
}
104
catch
( Exception $e )
105
{
106
$a = func_get_args();
_throw_exception_object
( __METHOD__ , $a , $e );
107
}
108
}
109
}
110
111
?>
packages
content
packages
content_markup
include
php
unit_tests.php
Generated on Fri Sep 28 2012 17:16:31 for ultimix by
1.8.1.2