-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathassert-string-equals-file.php
28 lines (23 loc) · 1.16 KB
/
assert-string-equals-file.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
<?php
class TestAssertStringEqualsFile
{
public function test()
{
<weak_warning descr="'assertStringEqualsFile(...)' would fit more here.">$this->assertSame(file_get_contents(''), 'string')</weak_warning>;
<weak_warning descr="'assertStringEqualsFile(...)' would fit more here.">$this->assertEquals(file_get_contents(''), 'string')</weak_warning>;
$this->assertSame('string', file_get_contents(''));
$this->assertEquals('string', file_get_contents(''));
}
public function testWithMessages()
{
<weak_warning descr="'assertStringEqualsFile(...)' would fit more here.">$this->assertSame(file_get_contents(''), '', 'message')</weak_warning>;
<weak_warning descr="'assertStringEqualsFile(...)' would fit more here.">$this->assertEquals(file_get_contents(''), '', 'message')</weak_warning>;
$this->assertSame('', file_get_contents(''), 'message');
$this->assertEquals('', file_get_contents(''), 'message');
}
public function assertStringEqualsFile()
{
$this->assertSame(file_get_contents(''), '', 'message');
$this->assertEquals('', file_get_contents(''), 'message');
}
}