1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
amp/test/EvReactorTest.php
2015-07-22 11:38:17 -04:00

38 lines
997 B
PHP

<?php
namespace Amp\Test;
use Amp\EvReactor;
class EvReactorTest extends ReactorTest {
protected function getReactor() {
if (extension_loaded("ev")) {
return new EvReactor;
} else {
$this->markTestSkipped(
"ev extension not loaded"
);
}
}
public function testImmediateCoroutineResolutionError() {
if (\extension_loaded("xdebug")) {
$this->markTestSkipped(
"Cannot run this test with xdebug enabled: it causes zend_mm_heap corrupted"
);
} else {
parent::testImmediateCoroutineResolutionError();
}
}
public function testOnErrorFailure() {
if (\extension_loaded("xdebug")) {
$this->markTestSkipped(
"Cannot run this test with xdebug enabled: it causes zend_mm_heap corrupted"
);
} else {
parent::testImmediateCoroutineResolutionError();
}
}
}