コード例 #1
0
ファイル: OperationsTest.php プロジェクト: skilla/matrix
 private function assertMatrixEquals(Matrix $expected, Matrix $actual)
 {
     $properties = new Properties($actual, 2);
     $this->assertTrue($properties->isEquals($expected));
 }
コード例 #2
0
ファイル: PropertiesTest.php プロジェクト: skilla/matrix
 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));
 }