From df0bbb4070fc3c9e12028fdb4adcb3f8de5dc523 Mon Sep 17 00:00:00 2001 From: codemasher Date: Sat, 27 Jan 2018 05:14:08 +0100 Subject: [PATCH] :octocat: assertEquals -> assertSame --- tests/Helpers/BitBufferTest.php | 8 ++++---- tests/Helpers/PolynomialTest.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/Helpers/BitBufferTest.php b/tests/Helpers/BitBufferTest.php index a223a4fa7..0f2166b11 100644 --- a/tests/Helpers/BitBufferTest.php +++ b/tests/Helpers/BitBufferTest.php @@ -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); } } diff --git a/tests/Helpers/PolynomialTest.php b/tests/Helpers/PolynomialTest.php index b510bd538..396fe2a24 100644 --- a/tests/Helpers/PolynomialTest.php +++ b/tests/Helpers/PolynomialTest.php @@ -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)); } /**