-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path29GreaterThanOrEqual.php
47 lines (43 loc) · 1.03 KB
/
29GreaterThanOrEqual.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* assertGreaterThanOrEqual(
* mixed $expected,
* mixed $actual[,
* string $message = '']
* )
*
* Reports an error identified by $message if
* the value of $actual is not greater than
* or equal to the value of $expected.
*
* assertAttributeGreaterThanOrEqual() is a convenience wrapper that uses a
* public, protected, or private attribute of a class or object as the actual value.
*/
class GreatThanOrEqualTest extends PHPUnit_Framework_TestCase
{
public function testFailure()
{
$this->assertGreaterThanOrEqual(2, 2);
}
/** There is some problem with these two functions
* @todo fix it
*/
/*
public function testAttributeStatic()
{
$this->assertGreaterThanOrEqual(2, 'foo', 'BarGreatEqual');
}
public function testAttributeObject()
{
$this->assertGreaterThanOrEqual(2, 'foo1', new BarGreatEqual());
}
*/
}
/**
* Helper class
*/
class BarGreatEqual{
public static $foo = 2;
public $foo1 = 2;
}
?>