Browse Source

Fix XdebugHandler test

johnstevenson 8 years ago
parent
commit
c1058cf37c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/Composer/Test/XdebugHandlerTest.php

+ 2 - 2
tests/Composer/Test/XdebugHandlerTest.php

@@ -32,7 +32,7 @@ class XdebugHandlerTest extends \PHPUnit_Framework_TestCase
         $xdebug = new XdebugHandlerMock($loaded);
         $xdebug = new XdebugHandlerMock($loaded);
         $xdebug->check();
         $xdebug->check();
         $this->assertTrue($xdebug->restarted);
         $this->assertTrue($xdebug->restarted);
-        $this->assertNotEquals(false, getenv(IniHelper::ENV_ORIGINAL));
+        $this->assertInternalType('string', getenv(IniHelper::ENV_ORIGINAL));
     }
     }
 
 
     public function testNoRestartWhenNotLoaded()
     public function testNoRestartWhenNotLoaded()
@@ -42,7 +42,7 @@ class XdebugHandlerTest extends \PHPUnit_Framework_TestCase
         $xdebug = new XdebugHandlerMock($loaded);
         $xdebug = new XdebugHandlerMock($loaded);
         $xdebug->check();
         $xdebug->check();
         $this->assertFalse($xdebug->restarted);
         $this->assertFalse($xdebug->restarted);
-        $this->assertEquals(false, getenv(IniHelper::ENV_ORIGINAL));
+        $this->assertFalse(getenv(IniHelper::ENV_ORIGINAL));
     }
     }
 
 
     public function testNoRestartWhenLoadedAndAllowed()
     public function testNoRestartWhenLoadedAndAllowed()