mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Use convenience methods to create a (case-insensitive) negation matcher
This commit is contained in:
parent
70a1b87db6
commit
1015b38a27
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class SmtpTransportTest extends CakeTestCase {
|
|||
* @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();
|
||||
|
|
Loading…
Reference in a new issue