Set version to 5.51.beta2. Retargeg FiveFiftyOne::updateUserJobTable to beta2.
[civicrm-core.git] / tests / phpunit / HelloTest.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
7d61e75f 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
7d61e75f
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 * @file HelloTest.php
14 *
15 * This is a simple test to make sure that you have phpunit
16 * correctly installed and working. The call will look something like:
17 *
18 * <code>
19 * scripts/phpunit HelloTest
20 * </code>
21 *
22 * If your script (which would need to be in HelloTest.php) is found and runs,
23 * UR DOIN IT RIGHT!
24 */
25
4cbe18b8
EM
26/**
27 * Class HelloTest
28 */
a6439b6a 29class HelloTest extends PHPUnit\Framework\TestCase {
39b959db
SL
30 /**
31 * contains the object handle of the string class
32 * @var string
33 */
34 public $abc;
4cbe18b8 35
795492f3 36 /**
eceb18cc 37 * Called before the test functions will be executed.
795492f3
TO
38 * this function is defined in PHPUnit_TestCase and overwritten
39 * here
40 */
0b49aa04 41 public function setUp(): void {
6a488035
TO
42 // create a new instance of String with the
43 // string 'abc'
bf4918a2 44 $this->abc = 'hello';
6a488035
TO
45 }
46
795492f3 47 /**
eceb18cc 48 * Called after the test functions are executed.
795492f3
TO
49 * this function is defined in PHPUnit_TestCase and overwritten
50 * here.
51 */
bf4918a2 52 public function tearDown(): void {
6a488035
TO
53 // delete your instance
54 unset($this->abc);
55 }
56
546b78fa 57 /**
eceb18cc 58 * test the toString function.
546b78fa 59 */
bf4918a2 60 public function testHello(): void {
6a488035 61 $result = $this->abc;
bf4918a2 62 $this->assertEquals('hello', $result);
6a488035 63 }
96025800 64
6a488035 65}