SanityTest.php 538 B

1234567891011121314151617181920
  1. <?php
  2. class SanityTest extends PHPUnit_Framework_TestCase
  3. {
  4. public function testLibraryWorksWithComposer()
  5. {
  6. if (version_compare(PHP_VERSION, "5.4.0", "<")) {
  7. $this->markTestSkipped("Requires PHP >=5.4");
  8. }
  9. $returnValue = null;
  10. $testFile = escapeshellarg(realpath(__DIR__ . '/Braintree/fixtures/composer_implementation.php'));
  11. $command = sprintf('%s %s', PHP_BINARY, $testFile);
  12. system($command, $returnValue);
  13. $this->assertEquals(0, $returnValue);
  14. }
  15. }