예제 #1
0
 /**
  * @dataProvider getInsertXData
  */
 public function testInsertX($x, $w, array $expectedData)
 {
     $from = [0 => [0 => 'A', 1 => 'B', 2 => 'C'], 1 => [0 => 'D', 1 => 'E', 2 => 'F']];
     $from = new Canvas(null, $from);
     $to = [0 => [0 => 'X', 1 => 'Y', 2 => 'Z']];
     $to = new Canvas(null, $to);
     $from->insert($to, 0, $x, 0, $w);
     $this->assertEquals($expectedData, $from->getArrayCopy());
 }