PHP Classes

File: tests/unit/Int32FastTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   PHP Sodium Compat   tests/unit/Int32FastTest.php   Download  
File: tests/unit/Int32FastTest.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__) . '/Int32Test.php';

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