dataset = Unlabeled::quick([
['The quick brown fox
jumped over the lazy man sitting at a bus'
. ' stop drinking a can of Coke'],
['with a Dandy ubrella'],
]);
$this->transformer = new HTMLStripper(['i']);
}
/**
* @test
*/
public function build() : void
{
$this->assertInstanceOf(HTMLStripper::class, $this->transformer);
$this->assertInstanceOf(Transformer::class, $this->transformer);
}
/**
* @test
*/
public function transform() : void
{
$this->dataset->apply($this->transformer);
$outcome = [
['The quick brown fox jumped over the lazy man sitting at a bus'
. ' stop drinking a can of Coke'],
['with a Dandy ubrella'],
];
$this->assertEquals($outcome, $this->dataset->samples());
}
}