Permalink
Browse files

Use convenience methods to create a (case-insensitive) negation matcher

  • Loading branch information...
1 parent 70a1b87 commit 1015b38a27a2841f02d83f6397cf52bb467bfb41 @ndm2 ndm2 committed Mar 2, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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();

0 comments on commit 1015b38

Please sign in to comment.