/** * * @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()); }
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'); } }