-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathassert-constant.fixed.php
52 lines (44 loc) · 1.18 KB
/
assert-constant.fixed.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
48
49
50
51
52
<?php
class TestCaseAssertConstant
{
public function testNormalization()
{
$this->assertNotTrue($s);
$this->assertNotFalse($y);
}
public function testNormalizationWithMessage()
{
$this->assertNotTrue($s, '');
$this->assertNotFalse($y, '');
}
public function test()
{
$this->assertNull(1);
$this->assertNull(1);
$this->assertNotNull(1);
$this->assertNotNull(1);
$this->assertTrue(0);
$this->assertNotTrue(0);
$this->assertTrue(0);
$this->assertNotTrue(0);
$this->assertFalse(0);
$this->assertNotFalse(0);
$this->assertFalse(0);
$this->assertNotFalse(0);
}
public function testWithMessages()
{
$this->assertNull(1, '');
$this->assertNull(1, '');
$this->assertNotNull(1, '') ;
$this->assertNotNull(1, '');
$this->assertTrue(0, '');
$this->assertNotTrue(0, '');
$this->assertTrue(0, '');
$this->assertNotTrue(0, '');
$this->assertFalse(0, '');
$this->assertNotFalse(0, '');
$this->assertFalse(0, '');
$this->assertNotFalse(0, '');
}
}