From 1015b38a27a2841f02d83f6397cf52bb467bfb41 Mon Sep 17 00:00:00 2001 From: ndm2 Date: Sun, 2 Mar 2014 17:56:35 +0100 Subject: [PATCH] Use convenience methods to create a (case-insensitive) negation matcher --- lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php b/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php index 390c0954af5..69bdd01c154 100644 --- a/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php +++ b/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php @@ -229,7 +229,7 @@ public function testAuth() { * @return void */ public function testAuthNoAuth() { - $this->socket->expects($this->any())->method('write')->with(new PHPUnit_Framework_Constraint_Not("AUTH LOGIN\r\n")); + $this->socket->expects($this->any())->method('write')->with($this->logicalNot($this->stringContains('AUTH LOGIN'))); $this->SmtpTransport->config(array('username' => null, 'password' => null)); $this->SmtpTransport->auth();