예제 #1
0
 private function assertMatrixEquals(Matrix $expected, Matrix $actual)
 {
     $properties = new Properties($actual, 2);
     $this->assertTrue($properties->isEquals($expected));
 }
예제 #2
0
 public function testIsEquals()
 {
     $matrix = new Matrix(2, 3, 2);
     $sut = new Properties($matrix, 2);
     $base = new Matrix(2, 3, 2);
     $this->assertTrue($sut->isEquals($base));
     $matrix = new Matrix(2, 3, 2);
     $sut = new Properties($matrix, 2);
     $base = new Matrix(2, 3, 2);
     $base->setPoint(1, 1, -3);
     $this->assertFalse($sut->isEquals($base));
     $base = new Matrix(2, 2, 2);
     $this->assertFalse($sut->isEquals($base));
 }