Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / symfony / process / Tests / PhpExecutableFinderTest.php
index b08ad5d3b734fc11c73ba8ddfd7d3792808f09ab..0c9e32d7d72fae7cf6d9a1b155e647a3dce1f9ec 100644 (file)
@@ -24,14 +24,14 @@ class PhpExecutableFinderTest extends TestCase
      */
     public function testFind()
     {
-        if (defined('HHVM_VERSION')) {
+        if (\defined('HHVM_VERSION')) {
             $this->markTestSkipped('Should not be executed in HHVM context.');
         }
 
         $f = new PhpExecutableFinder();
 
         $current = PHP_BINARY;
-        $args = 'phpdbg' === PHP_SAPI ? ' -qrr' : '';
+        $args = 'phpdbg' === \PHP_SAPI ? ' -qrr' : '';
 
         $this->assertEquals($current.$args, $f->find(), '::find() returns the executable PHP');
         $this->assertEquals($current, $f->find(false), '::find() returns the executable PHP');
@@ -42,7 +42,7 @@ class PhpExecutableFinderTest extends TestCase
      */
     public function testFindWithHHVM()
     {
-        if (!defined('HHVM_VERSION')) {
+        if (!\defined('HHVM_VERSION')) {
             $this->markTestSkipped('Should be executed in HHVM context.');
         }
 
@@ -61,9 +61,9 @@ class PhpExecutableFinderTest extends TestCase
     {
         $f = new PhpExecutableFinder();
 
-        if (defined('HHVM_VERSION')) {
+        if (\defined('HHVM_VERSION')) {
             $this->assertEquals($f->findArguments(), array('--php'), '::findArguments() returns HHVM arguments');
-        } elseif ('phpdbg' === PHP_SAPI) {
+        } elseif ('phpdbg' === \PHP_SAPI) {
             $this->assertEquals($f->findArguments(), array('-qrr'), '::findArguments() returns phpdbg arguments');
         } else {
             $this->assertEquals($f->findArguments(), array(), '::findArguments() returns no arguments');