Beispiel #1
0
 public function testGetConfigParam()
 {
     $env = array('PHPBREW_ROOT' => __DIR__ . '/../fixtures/');
     $this->withEnv($env, function ($self) {
         is(array('key1' => 'value1', 'key2' => 'value2'), PhpBrew\Config::getConfigParam());
         is('value1', PhpBrew\Config::getConfigParam('key1'));
         is('value2', PhpBrew\Config::getConfigParam('key2'));
     });
 }
Beispiel #2
0
 public function testGetConfigParam()
 {
     $env = array('PHPBREW_ROOT' => 'tests/fixtures');
     $this->withEnv($env, function ($self) {
         $config = PhpBrew\Config::getConfig();
         $self->assertSame(array('key1' => 'value1', 'key2' => 'value2'), $config);
         $self->assertEquals('value1', PhpBrew\Config::getConfigParam('key1'));
         $self->assertEquals('value2', PhpBrew\Config::getConfigParam('key2'));
     });
 }
Beispiel #3
0
 public function test()
 {
     $versions = PhpBrew\Config::getInstalledPhpVersions();
     // ok( $versions );
     // var_dump( $versions );
 }