1 | <?php |
---|
2 | /// FIXME: Tests not implemented. |
---|
3 | return; |
---|
4 | |
---|
5 | /** |
---|
6 | * The Strangecode Codebase - a general application development framework for PHP |
---|
7 | * For details visit the project site: <http://trac.strangecode.com/codebase/> |
---|
8 | * Copyright 2001-2009 Strangecode Internet Consultancy |
---|
9 | * |
---|
10 | * This file is part of The Strangecode Codebase. |
---|
11 | * |
---|
12 | * The Strangecode Codebase is free software: you can redistribute it and/or |
---|
13 | * modify it under the terms of the GNU General Public License as published by the |
---|
14 | * Free Software Foundation, either version 3 of the License, or (at your option) |
---|
15 | * any later version. |
---|
16 | * |
---|
17 | * The Strangecode Codebase is distributed in the hope that it will be useful, but |
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
19 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
---|
20 | * details. |
---|
21 | * |
---|
22 | * You should have received a copy of the GNU General Public License along with |
---|
23 | * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. |
---|
24 | */ |
---|
25 | |
---|
26 | /** |
---|
27 | * PHPUnit test case for codebase/lib/TemplateGlue.inc.php |
---|
28 | * |
---|
29 | * The method skeletons below need to be filled in with |
---|
30 | * real data so that the tests will run correctly. Replace |
---|
31 | * all EXPECTED_VAL and PARAM strings with real data. |
---|
32 | * |
---|
33 | * Created with PHPUnit_Skeleton on 2005-08-09 |
---|
34 | */ |
---|
35 | require_once 'PHPUnit.php'; |
---|
36 | class TemplateGlueTest extends PHPUnit_TestCase { |
---|
37 | |
---|
38 | var $TemplateGlue; |
---|
39 | |
---|
40 | function TemplateGlueTest($name) |
---|
41 | { |
---|
42 | $this->PHPUnit_TestCase($name); |
---|
43 | } |
---|
44 | |
---|
45 | function setUp() |
---|
46 | { |
---|
47 | require dirname(__FILE__) . '/_config.inc.php'; |
---|
48 | require_once '../lib/TemplateGlue.inc.php'; |
---|
49 | $this->TemplateGlue =& new TemplateGlue(PARAM); |
---|
50 | } |
---|
51 | |
---|
52 | function tearDown() |
---|
53 | { |
---|
54 | unset($this->TemplateGlue); |
---|
55 | } |
---|
56 | |
---|
57 | } |
---|
58 | // Running the test. |
---|
59 | $suite = new PHPUnit_TestSuite('TemplateGlueTest'); |
---|
60 | $result = PHPUnit::run($suite); |
---|
61 | echo $result->toString(); |
---|
62 | ?> |
---|