public function testGetCurrentPhpBin() { $env = array('PHPBREW_PATH' => getenv('PHPBREW_ROOT')); $this->withEnv($env, function ($self) { $self->assertStringEndsWith('.phpbrew', PhpBrew\Config::getCurrentPhpBin()); }); }