We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a80b7 commit 7e088c1Copy full SHA for 7e088c1
expect.php
@@ -29,7 +29,13 @@
29
use PhpSpec\Wrapper\Unwrapper;
30
use Symfony\Component\EventDispatcher\EventDispatcher;
31
32
-if (!function_exists('expect')) {
+$useExpect = true;
33
+
34
+if (getenv('PHPSPEC_DISABLE_EXPECT') || (defined('PHPSPEC_DISABLE_EXPECT') && PHPSPEC_DISABLE_EXPECT)) {
35
+ $useExpect = false;
36
+}
37
38
+if ($useExpect && !function_exists('expect')) {
39
function expect($sus)
40
{
41
$presenter = new TaggedPresenter(new Differ);
0 commit comments