mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-20 13:20:21 +00:00
:octocat: assertEquals -> assertSame
This commit is contained in:
@@ -41,14 +41,14 @@ class BitBufferTest extends QRTestAbstract{
|
||||
*/
|
||||
public function testPut($data, $value){
|
||||
$this->bitBuffer->put($data, 4);
|
||||
$this->assertEquals($value, $this->bitBuffer->buffer[0]);
|
||||
$this->assertEquals(4, $this->bitBuffer->length);
|
||||
$this->assertSame($value, $this->bitBuffer->buffer[0]);
|
||||
$this->assertSame(4, $this->bitBuffer->length);
|
||||
}
|
||||
|
||||
public function testClear(){
|
||||
$this->bitBuffer->clear();
|
||||
$this->assertEquals([], $this->bitBuffer->buffer);
|
||||
$this->assertEquals(0, $this->bitBuffer->length);
|
||||
$this->assertSame([], $this->bitBuffer->buffer);
|
||||
$this->assertSame(0, $this->bitBuffer->length);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -27,9 +27,9 @@ class PolynomialTest extends QRTestAbstract{
|
||||
}
|
||||
|
||||
public function testGexp(){
|
||||
$this->assertEquals(142, $this->polynomial->gexp(-1));
|
||||
$this->assertEquals(133, $this->polynomial->gexp(128));
|
||||
$this->assertEquals(2, $this->polynomial->gexp(256));
|
||||
$this->assertSame(142, $this->polynomial->gexp(-1));
|
||||
$this->assertSame(133, $this->polynomial->gexp(128));
|
||||
$this->assertSame(2, $this->polynomial->gexp(256));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user