private function assertMatrixEquals(Matrix $expected, Matrix $actual) { $properties = new Properties($actual, 2); $this->assertTrue($properties->isEquals($expected)); }
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)); }