PHP Classes

File: tests/unit/Int64FastTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   PHP Sodium Compat   tests/unit/Int64FastTest.php   Download  
File: tests/unit/Int64FastTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Sodium Compat
Cryptographic functions of libsodium in pure PHP
Author: By
Last change: Made the test suite compatible with PHPUnit 9.
Date: 3 years ago
Size: 363 bytes
 

Contents

Class file image Download
<?php

require_once dirname(__FILE__) . '/Int64Test.php';

class
Int64FastTest extends Int64Test
{
   
/**
     * @before
     */
   
public function before()
    {
        if (
PHP_INT_SIZE === 8) {
           
$this->markTestSkipped('Only relevant to 32-bit platforms.');
        } else {
           
ParagonIE_Sodium_Compat::$fastMult = true;
        }
    }
}