:octocat: assertEquals -> assertSame

This commit is contained in:
codemasher
2018-01-27 05:14:08 +01:00
parent 7599f8b311
commit df0bbb4070
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -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);
}
}
+3 -3
View File
@@ -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));
}
/**