Added new test and example
[ajatus.git] / plugins / ajatus / tests / helpersTest.php
blobe1896cbe13bbc59b89cdf21a1086b83d87d8c5b1
1 <?php
2 /**
3 * This file is part of
4 * Ajatus - Distributed CRM
5 *
6 * Copyright (c) 2008 Jerry Jalava <jerry.jalava@gmail.com>
7 * Copyright (c) 2008 Nemein Oy <http://nemein.com>
8 * Website: http://ajatus.info
9 * Licensed under the GPL license
10 * http://www.gnu.org/licenses/gpl.html
14 require_once('testcase.php');
16 /**
17 * Test to see if ajatus helpers work
19 class ajatus_tests_helpersTest extends ajatus_tests_testcase
21 public function setUp()
23 if (AJATUS_TESTS_ENABLE_OUTPUT)
25 echo __CLASS__ . "\n";
27 parent::setUp();
30 public function testHelpersExists()
32 if (AJATUS_TESTS_ENABLE_OUTPUT)
34 echo __FUNCTION__ . "\n";
37 try
39 $this->assertTrue(isset($this->ajatus->helpers));
41 catch (ajatus_exception $e)
43 $this->fail('An unexpected exception has been raised. ' . $e);