* * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ declare(strict_types=1); namespace Respect\Validation\Rules; use Respect\Validation\Test\RuleTestCase; /** * @group rule * * @covers \Respect\Validation\Rules\CurrencyCode * * @author Henrique Moody * @author Justin Hook * @author William Espindola */ final class CurrencyCodeTest extends RuleTestCase { /** * {@inheritdoc} */ public function providerForValidInput(): array { $rule = new CurrencyCode(); return [ [$rule, 'EUR'], [$rule, 'GBP'], [$rule, 'XAU'], [$rule, 'XBA'], [$rule, 'XXX'], ]; } /** * {@inheritdoc} */ public function providerForInvalidInput(): array { $rule = new CurrencyCode(); return [ [$rule, 'BTC'], [$rule, 'GGP'], [$rule, 'USA'], [$rule, 'xxx'], ]; } }