$user_id * @param bool $expected * * @see StatusChecker::canUse() * @dataProvider dataProvider_canUse */ public function test_canUse(int $user_id, bool $expected) { $checker = new StatusChecker(); $this->assertSame($expected, $checker->canUser($user_id)); } /** * @return array */ public function dataProvider_canUse(): array { return [ ‘௨ৗϢʔβʔར༻Մೳͱఆ’ => [1, true], ‘Ϣʔβʔ͕ଘࡏ͠ͳ͍߹ར༻ෆՄͱఆ’ => [9999, false], ‘ېࢭϢʔβʔͷ߹ར༻ෆՄͱఆ’ => [2, false], ‘Ϣʔβʔ͕Ϣʔβʔͷ߹ར༻ෆՄͱఆ’ => [3, false], ]; }