Przeglądaj źródła

:octocat: assertEquals -> assertSame

codemasher 8 lat temu
rodzic
commit
df0bbb4070

+ 4 - 4
tests/Helpers/BitBufferTest.php

@@ -41,14 +41,14 @@ class BitBufferTest extends QRTestAbstract{
 	 */
 	 */
 	public function testPut($data, $value){
 	public function testPut($data, $value){
 		$this->bitBuffer->put($data, 4);
 		$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(){
 	public function testClear(){
 		$this->bitBuffer->clear();
 		$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
tests/Helpers/PolynomialTest.php

@@ -27,9 +27,9 @@ class PolynomialTest extends QRTestAbstract{
 	}
 	}
 
 
 	public function testGexp(){
 	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));
 	}
 	}
 
 
 	/**
 	/**