Skip to content

Commit

Permalink
Use convenience methods to create a (case-insensitive) negation matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
ndm2 committed Mar 2, 2014
1 parent 70a1b87 commit 1015b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php
Expand Up @@ -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();
Expand Down

0 comments on commit 1015b38

Please sign in to comment.