Esempio n. 1
0
 /**
  *
  * @param \Chippyash\Matrix\Interfaces\TransformationInterface $transformation
  * @param mixed $extra
  *
  * @return NumericMatrix
  */
 public function transform(TransformationInterface $transformation, $extra = null)
 {
     return new self(parent::transform($transformation, $extra)->toArray());
 }
Esempio n. 2
0
 public function testTransformRequiresTransformationInterface()
 {
     if (PHP_MAJOR_VERSION < 7) {
         $this->setExpectedException('PHPUnit_Framework_Error');
         $mA = new Matrix([]);
         $mA->transform();
     } else {
         $this->markTestSkipped('Test incompatible with PHP 7');
     }
 }