Merge pull request #142 from GrahamCampbell/hhvm

Improved HHVM Support
This commit is contained in:
Denis
2014-02-17 13:26:36 +02:00
3 changed files with 13 additions and 6 deletions
+1 -6
View File
@@ -16,9 +16,4 @@ before_script:
- composer install --no-interaction --prefer-source --dev
script:
- phpunit
matrix:
allow_failures:
- php: hhvm
fast_finish: true
- phpunit --verbose
@@ -247,6 +247,10 @@ class PrettyPageHandlerTest extends TestCase
public function testEditorXdebug()
{
if (!extension_loaded('xdebug')) {
return $this->markTestSkipped('The xdebug extension is not loaded.');
}
$originalValue = ini_get('xdebug.file_link_format');
ini_set('xdebug.file_link_format', '%f:%l');
+8
View File
@@ -23,6 +23,10 @@ class RunTest extends TestCase
*/
protected function getException($message = null)
{
if (defined('HHVM_VERSION')) {
return $this->markTestSkipped('HHVM does not support mocking exceptions.');
}
return m::mock('Exception', array($message));
}
@@ -276,6 +280,10 @@ class RunTest extends TestCase
public function testErrorCatching()
{
if (defined('HHVM_VERSION')) {
return $this->markTestSkipped('Skipped due to a bug in HHVM.');
}
$run = $this->getRunInstance();
$run->register();