1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
amp/test/PromisorPrivateTest.php
Daniel Lowrey 3af013d418 Expose boolean AMP_DEBUG for performance tuning
Amp Future instances double both as Promisor and Promise
implementations when AMP_DEBUG is defined and set to false.
This switch allows private Promise resolution safety by
default at the expense of performance.

Amp applications should set AMP_DEBUG to false in production
environments to maximize performance.
2015-05-18 23:57:34 -04:00

13 lines
217 B
PHP

<?php
namespace Amp\Test;
use Amp\Promisor;
use Amp\Test\PromisorPrivateImpl;
class PromisorPrivateTest extends PromisorTest {
protected function getPromisor() {
return new PromisorPrivateImpl;
}
}