mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 01:22:37 +00:00
Add some more exception message checks
This commit is contained in:
parent
bf7d01ac66
commit
f03bf8067c
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,7 @@ class SmtpTransportTest extends CakeTestCase {
|
|||
* testConnectEhloTlsOnNonTlsServer method
|
||||
*
|
||||
* @expectedException SocketException
|
||||
* @expectedExceptionMessage SMTP server did not accept the connection or trying to connect to non TLS SMTP server using TLS.
|
||||
* @return void
|
||||
*/
|
||||
public function testConnectEhloTlsOnNonTlsServer() {
|
||||
|
@ -150,6 +151,7 @@ class SmtpTransportTest extends CakeTestCase {
|
|||
* testConnectEhloNoTlsOnRequiredTlsServer method
|
||||
*
|
||||
* @expectedException SocketException
|
||||
* @expectedExceptionMessage SMTP authentication method not allowed, check if SMTP server requires TLS.
|
||||
* @return void
|
||||
*/
|
||||
public function testConnectEhloNoTlsOnRequiredTlsServer() {
|
||||
|
@ -189,6 +191,7 @@ class SmtpTransportTest extends CakeTestCase {
|
|||
* testConnectFail method
|
||||
*
|
||||
* @expectedException SocketException
|
||||
* @expectedExceptionMessage SMTP server did not accept the connection.
|
||||
* @return void
|
||||
*/
|
||||
public function testConnectFail() {
|
||||
|
@ -257,6 +260,7 @@ class SmtpTransportTest extends CakeTestCase {
|
|||
* testAuthBadSequence method
|
||||
*
|
||||
* @expectedException SocketException
|
||||
* @expectedExceptionMessage SMTP Error: 503 5.5.1 Already authenticated
|
||||
* @return void
|
||||
*/
|
||||
public function testAuthBadSequence() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue