X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FHelloTest.php;h=d0926180dbf11811a9faff4e9bfb138f2293c549;hb=3a3c02959ef5d544627fee776e0eba866b82b305;hp=dd2d7c7c15eaf1dea173eb09dcf2859af854b44b;hpb=1761553f7e28866ef0c0a9f54abbb222487cea5c;p=civicrm-core.git diff --git a/tests/phpunit/HelloTest.php b/tests/phpunit/HelloTest.php index dd2d7c7c15..d0926180db 100644 --- a/tests/phpunit/HelloTest.php +++ b/tests/phpunit/HelloTest.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @file HelloTest.php @@ -47,34 +47,40 @@ class HelloTest extends PHPUnit_Framework_TestCase { var $abc; /** - * @param null $name + * @param string|null $name */ - function __construct($name = NULL) { + public function __construct($name = NULL) { parent::__construct($name); } - // called before the test functions will be executed - // this function is defined in PHPUnit_TestCase and overwritten - // here - function setUp() { + /** + * Called before the test functions will be executed. + * this function is defined in PHPUnit_TestCase and overwritten + * here + */ + public function setUp() { // create a new instance of String with the // string 'abc' $this->abc = "hello"; } - // called after the test functions are executed - // this function is defined in PHPUnit_TestCase and overwritten - // here - function tearDown() { + /** + * Called after the test functions are executed. + * this function is defined in PHPUnit_TestCase and overwritten + * here. + */ + public function tearDown() { // delete your instance unset($this->abc); } - // test the toString function - function testHello() { + /** + * test the toString function. + */ + public function testHello() { $result = $this->abc; $expected = 'hello'; $this->assertEquals($result, $expected); } -} +}