assertEquals($isMap, $inputIsMap); if ($isMap === true) { $this->assertEquals($name, Map::fromString($input)->name); } } public static function inputProvider(): \Generator { yield ['seed-to-soil map:', 'seed-to-soil', true]; yield ['a map:', 'a', true]; yield [' a map: ', 'a', true]; yield ['a', '', false]; yield ['map: a', '', false]; } }