mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 09:32:43 +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
|
* testConnectEhloTlsOnNonTlsServer method
|
||||||
*
|
*
|
||||||
* @expectedException SocketException
|
* @expectedException SocketException
|
||||||
|
* @expectedExceptionMessage SMTP server did not accept the connection or trying to connect to non TLS SMTP server using TLS.
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testConnectEhloTlsOnNonTlsServer() {
|
public function testConnectEhloTlsOnNonTlsServer() {
|
||||||
|
@ -150,6 +151,7 @@ class SmtpTransportTest extends CakeTestCase {
|
||||||
* testConnectEhloNoTlsOnRequiredTlsServer method
|
* testConnectEhloNoTlsOnRequiredTlsServer method
|
||||||
*
|
*
|
||||||
* @expectedException SocketException
|
* @expectedException SocketException
|
||||||
|
* @expectedExceptionMessage SMTP authentication method not allowed, check if SMTP server requires TLS.
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testConnectEhloNoTlsOnRequiredTlsServer() {
|
public function testConnectEhloNoTlsOnRequiredTlsServer() {
|
||||||
|
@ -189,6 +191,7 @@ class SmtpTransportTest extends CakeTestCase {
|
||||||
* testConnectFail method
|
* testConnectFail method
|
||||||
*
|
*
|
||||||
* @expectedException SocketException
|
* @expectedException SocketException
|
||||||
|
* @expectedExceptionMessage SMTP server did not accept the connection.
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testConnectFail() {
|
public function testConnectFail() {
|
||||||
|
@ -257,6 +260,7 @@ class SmtpTransportTest extends CakeTestCase {
|
||||||
* testAuthBadSequence method
|
* testAuthBadSequence method
|
||||||
*
|
*
|
||||||
* @expectedException SocketException
|
* @expectedException SocketException
|
||||||
|
* @expectedExceptionMessage SMTP Error: 503 5.5.1 Already authenticated
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testAuthBadSequence() {
|
public function testAuthBadSequence() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue