MediaWiki REL1_31
PasswordTest.php
Go to the documentation of this file.
1<?php
27 public function testInvalidUnequalInvalid() {
28 $passwordFactory = new PasswordFactory();
29 $invalid1 = $passwordFactory->newFromCiphertext( null );
30 $invalid2 = $passwordFactory->newFromCiphertext( null );
31
32 $this->assertFalse( $invalid1->equals( $invalid2 ) );
33 }
34
35 public function testInvalidPlaintext() {
36 $passwordFactory = new PasswordFactory();
37 $invalid = $passwordFactory->newFromPlaintext( null );
38
39 $this->assertInstanceOf( InvalidPassword::class, $invalid );
40 }
41}
Factory class for creating and checking Password objects.
InvalidPassword.
testInvalidUnequalInvalid()