gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

RuntimeTest.php (3367B)


      1 <?php
      2 /*
      3  * This file is part of the Environment package.
      4  *
      5  * (c) Sebastian Bergmann <sebastian@phpunit.de>
      6  *
      7  * For the full copyright and license information, please view the LICENSE
      8  * file that was distributed with this source code.
      9  */
     10 
     11 namespace SebastianBergmann\Environment;
     12 
     13 use PHPUnit_Framework_TestCase;
     14 
     15 class RuntimeTest extends PHPUnit_Framework_TestCase
     16 {
     17     /**
     18      * @var \SebastianBergmann\Environment\Runtime
     19      */
     20     private $env;
     21 
     22     protected function setUp()
     23     {
     24         $this->env = new Runtime;
     25     }
     26 
     27     /**
     28      * @covers \SebastianBergmann\Environment\Runtime::canCollectCodeCoverage
     29      * @uses   \SebastianBergmann\Environment\Runtime::hasXdebug
     30      * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
     31      * @uses   \SebastianBergmann\Environment\Runtime::isPHP
     32      */
     33     public function testAbilityToCollectCodeCoverageCanBeAssessed()
     34     {
     35         $this->assertInternalType('boolean', $this->env->canCollectCodeCoverage());
     36     }
     37 
     38     /**
     39      * @covers \SebastianBergmann\Environment\Runtime::getBinary
     40      * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
     41      */
     42     public function testBinaryCanBeRetrieved()
     43     {
     44         $this->assertInternalType('string', $this->env->getBinary());
     45     }
     46 
     47     /**
     48      * @covers \SebastianBergmann\Environment\Runtime::isHHVM
     49      */
     50     public function testCanBeDetected()
     51     {
     52         $this->assertInternalType('boolean', $this->env->isHHVM());
     53     }
     54 
     55     /**
     56      * @covers \SebastianBergmann\Environment\Runtime::isPHP
     57      * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
     58      */
     59     public function testCanBeDetected2()
     60     {
     61         $this->assertInternalType('boolean', $this->env->isPHP());
     62     }
     63 
     64     /**
     65      * @covers \SebastianBergmann\Environment\Runtime::hasXdebug
     66      * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
     67      * @uses   \SebastianBergmann\Environment\Runtime::isPHP
     68      */
     69     public function testXdebugCanBeDetected()
     70     {
     71         $this->assertInternalType('boolean', $this->env->hasXdebug());
     72     }
     73 
     74     /**
     75      * @covers \SebastianBergmann\Environment\Runtime::getNameWithVersion
     76      * @uses   \SebastianBergmann\Environment\Runtime::getName
     77      * @uses   \SebastianBergmann\Environment\Runtime::getVersion
     78      * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
     79      * @uses   \SebastianBergmann\Environment\Runtime::isPHP
     80      */
     81     public function testNameAndVersionCanBeRetrieved()
     82     {
     83         $this->assertInternalType('string', $this->env->getNameWithVersion());
     84     }
     85 
     86     /**
     87      * @covers \SebastianBergmann\Environment\Runtime::getName
     88      * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
     89      */
     90     public function testNameCanBeRetrieved()
     91     {
     92         $this->assertInternalType('string', $this->env->getName());
     93     }
     94 
     95     /**
     96      * @covers \SebastianBergmann\Environment\Runtime::getVersion
     97      * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
     98      */
     99     public function testVersionCanBeRetrieved()
    100     {
    101         $this->assertInternalType('string', $this->env->getVersion());
    102     }
    103 
    104     /**
    105      * @covers \SebastianBergmann\Environment\Runtime::getVendorUrl
    106      * @uses   \SebastianBergmann\Environment\Runtime::isHHVM
    107      */
    108     public function testVendorUrlCanBeRetrieved()
    109     {
    110         $this->assertInternalType('string', $this->env->getVendorUrl());
    111     }
    112 }