Просмотр исходного кода

:octocat: assertEquals -> assertSame

codemasher 8 лет назад
Родитель
Сommit
df0bbb4070
2 измененных файлов с 7 добавлено и 7 удалено
  1. 4 4
      tests/Helpers/BitBufferTest.php
  2. 3 3
      tests/Helpers/PolynomialTest.php

+ 4 - 4
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);
 	}
 
 }

+ 3 - 3
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));
 	}
 
 	/**