<?php

namespace BitWasp\Bitcoin\Tests;

use BitWasp\Bitcoin\Bitcoin;
use BitWasp\Bitcoin\Crypto\EcAdapter\PhpEcc;
use BitWasp\Bitcoin\Crypto\EcAdapter\Secp256k1;

class AbstractTestCase extends \PHPUnit_Framework_TestCase
{
    /**
     * @return array
     */
    public function getEcAdapters()
    {
        $math = Bitcoin::getMath();
        $generator = Bitcoin::getGenerator();

        $adapters = array(
            [new PhpEcc($math, $generator)]
        );

        if (extension_loaded('secp256k1')) {
            $adapters[] = [new Secp256k1($math, $generator)];
        }

        return $adapters;
    }
}
<?php

namespace BitWasp\Bitcoin\Tests;

use BitWasp\Bitcoin\Bitcoin;
use BitWasp\Bitcoin\Crypto\EcAdapter\PhpEcc;
use BitWasp\Bitcoin\Crypto\EcAdapter\Secp256k1;

class AbstractTestCase extends \PHPUnit_Framework_TestCase
{
    /**
     * @return array
     */
    public function getEcAdapters()
    {
        $math = Bitcoin::getMath();
        $generator = Bitcoin::getGenerator();

        $adapters = array(
            [new PhpEcc($math, $generator)]
        );

        if (!defined('HHVM_VERSION') && extension_loaded('secp256k1')) {
            $adapters[] = [new Secp256k1($math, $generator)];
        }

        return $adapters;
    }
}
Disable secp256k1 tests on hhvm
Disable secp256k1 tests on hhvm
