-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathassert-normalization.php
30 lines (26 loc) · 1.94 KB
/
assert-normalization.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
<?php
class TestCaseNormalization
{
public function test()
{
<weak_warning descr="assertEquals would fit more here.">$this->assertTrue(false == $x)</weak_warning>;
<weak_warning descr="assertSame would fit more here.">$this->assertNotFalse(false === $x)</weak_warning>;
<weak_warning descr="assertNotEquals would fit more here.">$this->assertTrue(false != $x)</weak_warning>;
<weak_warning descr="assertNotSame would fit more here.">$this->assertNotFalse(false !== $x)</weak_warning>;
<weak_warning descr="assertNotEquals would fit more here.">$this->assertFalse(false == $x)</weak_warning>;
<weak_warning descr="assertNotSame would fit more here.">$this->assertNotTrue(false === $x)</weak_warning>;
<weak_warning descr="assertEquals would fit more here.">$this->assertFalse(false != $x)</weak_warning>;
<weak_warning descr="assertSame would fit more here.">$this->assertNotTrue(false !== $x)</weak_warning>;
}
public function testWithMessages()
{
<weak_warning descr="assertEquals would fit more here.">$this->assertTrue(false == $x, '')</weak_warning>;
<weak_warning descr="assertSame would fit more here.">$this->assertNotFalse(false === $x, '')</weak_warning>;
<weak_warning descr="assertNotEquals would fit more here.">$this->assertTrue(false != $x, '')</weak_warning>;
<weak_warning descr="assertNotSame would fit more here.">$this->assertNotFalse(false !== $x, '')</weak_warning>;
<weak_warning descr="assertNotEquals would fit more here.">$this->assertFalse(false == $x, '')</weak_warning>;
<weak_warning descr="assertNotSame would fit more here.">$this->assertNotTrue(false === $x, '')</weak_warning>;
<weak_warning descr="assertEquals would fit more here.">$this->assertFalse(false != $x, '')</weak_warning>;
<weak_warning descr="assertSame would fit more here.">$this->assertNotTrue(false !== $x, '')</weak_warning>;
}
}