dataset = new Unlabeled([ ['1', '2', '3', 4], ['4.0', '2.0', '3.0', 1.0], ['100', '3.0', '200', 2.5], ]); $this->transformer = new NumericStringConverter(); } /** * @test */ public function build() : void { $this->assertInstanceOf(NumericStringConverter::class, $this->transformer); $this->assertInstanceOf(Transformer::class, $this->transformer); } /** * @test */ public function transform() : void { $this->dataset->apply($this->transformer); $this->assertEquals([ [1, 2, 3, 4], [4.0, 2.0, 3.0, 1.0], [100, 3.0, 200, 2.5], ], $this->dataset->samples()); } }