-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathassert-empty.php
20 lines (18 loc) · 1.06 KB
/
assert-empty.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
class TestAssertEmpty
{
public function test()
{
<weak_warning descr="'assertNotEmpty(...)' would fit more here.">$this->assertNotTrue(empty($x))</weak_warning>;
<weak_warning descr="'assertNotEmpty(...)' would fit more here.">$this->assertFalse(empty($x))</weak_warning>;
<weak_warning descr="'assertEmpty(...)' would fit more here.">$this->assertTrue(empty($x))</weak_warning>;
<weak_warning descr="'assertEmpty(...)' would fit more here.">$this->assertNotFalse(empty($x))</weak_warning>;
}
public function testWithMessages()
{
<weak_warning descr="'assertNotEmpty(...)' would fit more here.">$this->assertNotTrue(empty($x), '')</weak_warning>;
<weak_warning descr="'assertNotEmpty(...)' would fit more here.">$this->assertFalse(empty($x), '')</weak_warning>;
<weak_warning descr="'assertEmpty(...)' would fit more here.">$this->assertTrue(empty($x), '')</weak_warning>;
<weak_warning descr="'assertEmpty(...)' would fit more here.">$this->assertNotFalse(empty($x), '')</weak_warning>;
}
}