We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4022bb commit b2c0e22Copy full SHA for b2c0e22
tests/system/Email/EmailTest.php
@@ -143,16 +143,14 @@ public function testDestructDoesNotThrowException()
143
->disableOriginalConstructor()
144
->onlyMethods(['sendCommand'])
145
->getMock();
146
- $email->method('sendCommand')
+ $email->expects($this->once())->method('sendCommand')
147
->willThrowException(new ErrorException('SMTP Error.'));
148
149
// Force resource to be injected into the property
150
$SMTPConnect = fopen(__FILE__, 'rb');
151
$this->setPrivateProperty($email, 'SMTPConnect', $SMTPConnect);
152
153
$email->__destruct();
154
-
155
- $this->assertTrue(true);
156
}
157
158
private function createMockEmail(): MockEmail
0 commit comments