We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 637dd23 commit 499ba4fCopy full SHA for 499ba4f
tests/unit/PluginTest.php
@@ -69,9 +69,6 @@ public function testCanAssert() : void
69
*/
70
public function testCanCatchFailedAssertion() : void
71
{
72
- $initValue = ini_get('zend.assertions');
73
- ini_set('zend.assertions', 1);
74
-
75
WP_Mock::userFunction('wp_debug_backtrace_summary')
76
->once()
77
->andReturn('TEST_DEBUG_BACKTRACE_SUMMARY');
@@ -87,7 +84,5 @@ public function testCanCatchFailedAssertion() : void
87
84
$this->assertNull(
88
85
$this->invokeInaccessibleMethod($this->testObject, 'assert', false)
89
86
);
90
91
- ini_set('zend.assertions', $initValue);
92
}
93
0 commit comments