Improve PHPUnit assertions

This commit is contained in:
peter279k 2020-08-27 13:54:34 +08:00
commit 14e0915e28
6 changed files with 36 additions and 36 deletions

View file

@ -46,7 +46,7 @@ class CountWrapperTest extends WrapperTest {
stream_get_contents($wrapped);
fclose($wrapped);
$this->assertEquals(6, $count);
$this->assertSame(6, $count);
}
public function testWriteCount() {
@ -60,6 +60,6 @@ class CountWrapperTest extends WrapperTest {
fwrite($wrapped, 'foobar');
fclose($wrapped);
$this->assertEquals(6, $count);
$this->assertSame(6, $count);
}
}