We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70442be + 7e088c1 commit eb74c74Copy full SHA for eb74c74
expect.php
@@ -34,7 +34,13 @@
34
use PhpSpec\Wrapper\Unwrapper;
35
use Symfony\Component\EventDispatcher\EventDispatcher;
36
37
-if (!function_exists('expect')) {
+$useExpect = true;
38
+
39
+if (getenv('PHPSPEC_DISABLE_EXPECT') || (defined('PHPSPEC_DISABLE_EXPECT') && PHPSPEC_DISABLE_EXPECT)) {
40
+ $useExpect = false;
41
+}
42
43
+if ($useExpect && !function_exists('expect')) {
44
function expect($sus)
45
{
46
$container = new IndexedServiceContainer;
0 commit comments