Skip to content

Commit

Permalink
Add some more exception message checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ndm2 committed Jul 18, 2014
1 parent bf7d01a commit f03bf80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php
Expand Up @@ -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() {
Expand All @@ -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() {
Expand Down Expand Up @@ -189,6 +191,7 @@ public function testConnectHelo() {
* testConnectFail method
*
* @expectedException SocketException
* @expectedExceptionMessage SMTP server did not accept the connection.
* @return void
*/
public function testConnectFail() {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit f03bf80

Please sign in to comment.