Skip to content
Permalink
Browse files

Add some more exception message checks

  • Loading branch information...
ndm2
ndm2 committed Jul 18, 2014
1 parent bf7d01a commit f03bf8067c81fe8aa1b5b7a05c3bae84434a8256
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php
@@ -130,6 +130,7 @@ public function testConnectEhloTls() {
* 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 @@ public function testConnectEhloTlsOnNonTlsServer() {
* 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 @@ public function testConnectHelo() {
* testConnectFail method
*
* @expectedException SocketException
* @expectedExceptionMessage SMTP server did not accept the connection.
* @return void
*/
public function testConnectFail() {
@@ -257,6 +260,7 @@ public function testAuthNotImplemented() {
* testAuthBadSequence method
*
* @expectedException SocketException
* @expectedExceptionMessage SMTP Error: 503 5.5.1 Already authenticated
* @return void
*/
public function testAuthBadSequence() {

0 comments on commit f03bf80

Please sign in to comment.
You can’t perform that action at this time.