-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathassert-count.php
23 lines (20 loc) · 1.17 KB
/
assert-count.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
class TestAssertCount
{
public function test()
{
<weak_warning descr="'assertCount(...)' would fit more here.">$this->assertEquals(0, count([]))</weak_warning>;
<weak_warning descr="'assertCount(...)' would fit more here.">$this->assertSame(0, count([]))</weak_warning>;
<weak_warning descr="'assertNotCount(...)' would fit more here.">$this->assertNotEquals(0, count([]))</weak_warning>;
<weak_warning descr="'assertNotCount(...)' would fit more here.">$this->assertNotSame(0, count([]))</weak_warning>;
$this->assertEquals(count([]), 0);
$this->assertSame(count([]), 0);
}
public function testWithMessages()
{
<weak_warning descr="'assertCount(...)' would fit more here.">$this->assertEquals(0, count([]), '')</weak_warning>;
<weak_warning descr="'assertCount(...)' would fit more here.">$this->assertSame(0, count([]), '')</weak_warning>;
<weak_warning descr="'assertNotCount(...)' would fit more here.">$this->assertNotEquals(0, count([]), '')</weak_warning>;
<weak_warning descr="'assertNotCount(...)' would fit more here.">$this->assertNotSame(0, count([]), '')</weak_warning>;
}
}