PHP 7.4.33
Preview: SanityTest.php Size: 558 B
/home/godevadmin/www/admin/braintree/final/braintree_php-master/tests/SanityTest.php

<?php

class SanityTest extends PHPUnit_Framework_TestCase
{
    public function testLibraryWorksWithComposer()
    {
        if (version_compare(PHP_VERSION, "5.4.0", "<")) {
            $this->markTestSkipped("Requires PHP >=5.4");
        }

        $returnValue = null;

        $testFile = escapeshellarg(realpath(__DIR__ . '/Braintree/fixtures/composer_implementation.php'));
        $command = sprintf('%s %s', PHP_BINARY, $testFile);

        system($command, $returnValue);

        $this->assertEquals(0, $returnValue);
    }
}

Directory Contents

Dirs: 3 × Files: 3

Name Size Perms Modified Actions
Braintree DIR
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
unit DIR
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
6.85 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
558 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
981 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).