PHP Classes
elePHPant
Icontem

File: tests/BlindIndexTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  Cipher Sweet  >  tests/BlindIndexTest.php  >  Download  
File: tests/BlindIndexTest.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: 10 months ago
Size: 473 bytes
 

 

Contents

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

use
ParagonIE\CipherSweet\BlindIndex;
use
ParagonIE\CipherSweet\Transformation\DigitsOnly;
use
PHPUnit\Framework\TestCase;

/**
 * Class BlindIndexTest
 * @package ParagonIE\CipherSweet\Tests
 */
class BlindIndexTest extends TestCase
{
    public function
testBlindIndex()
    {
       
$digits = new BlindIndex('test', [new DigitsOnly()]);
       
$this->assertEquals('12345', $digits->getTransformed('1a2b3?c4d5e'));
    }
}