PHP Classes
elePHPant
Icontem

File: tests/Transformation/LastFourDigitsTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  Cipher Sweet  >  tests/Transformation/LastFourDigitsTest.php  >  Download  
File: tests/Transformation/LastFourDigitsTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Cipher Sweet
Encrypt data in away that can be searched
Author: By
Last change:
Date: 8 months ago
Size: 860 bytes
 

Contents

Class file image Download
<?php
namespace ParagonIE\CipherSweet\Tests\Transformation;

use
ParagonIE\CipherSweet\Contract\TransformationInterface;
use
ParagonIE\CipherSweet\Transformation\LastFourDigits;

/**
 * Class LowercaseTest
 * @package ParagonIE\CipherSweet\Tests\Transformation
 */
class LastFourDigitsTest extends GenericTransfomationCase
{
   
/**
     * @return TransformationInterface
     */
   
protected function getTransformation()
    {
        return new
LastFourDigits();
    }

   
/**
     * @return array<int, array<int, string>>
     */
   
protected function getTestCases()
    {
        return [
            [
'apple', '0000'],
            [
'1', '0001'],
            [
'12', '0012'],
            [
'123', '0123'],
            [
'1234', '1234'],
            [
'12345', '2345'],
            [
'123456', '3456'],
            [
'123-456-7890', '7890']
        ];
    }
}