dataset = new Unlabeled([ [true, 'true', '1', 1], [false, 'false', '0', 0], ]); $this->transformer = new BooleanConverter('::true::', '::false::'); } /** * @test */ public function build() : void { $this->assertInstanceOf(BooleanConverter::class, $this->transformer); $this->assertInstanceOf(Transformer::class, $this->transformer); } /** * @test */ public function transform() : void { $this->dataset->apply($this->transformer); $this->assertEquals([ ['::true::', 'true', '1', 1], ['::false::', 'false', '0', 0], ], $this->dataset->samples()); } }