param = new Parameter(Matrix::quick([ [5, 4], [-2, 6], ])); } /** * @test */ public function build() : void { $this->assertInstanceOf(Parameter::class, $this->param); } /** * @test */ public function id() : void { $this->assertIsInt($this->param->id()); } /** * @test */ public function update() : void { $step = Matrix::quick([ [2, 1], [1, -2], ]); $expected = [ [3, 3], [-3, 8], ]; $this->param->update($step); $this->assertEquals($expected, $this->param->param()->asArray()); } }