MediaWiki
REL1_31
PasswordTest.php
Go to the documentation of this file.
1
<?php
26
class
PasswordTest
extends
MediaWikiTestCase
{
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
}
MediaWikiTestCase
Definition
MediaWikiTestCase.php:17
PasswordFactory
Factory class for creating and checking Password objects.
Definition
PasswordFactory.php:28
PasswordTest
InvalidPassword.
Definition
PasswordTest.php:26
PasswordTest\testInvalidUnequalInvalid
testInvalidUnequalInvalid()
Definition
PasswordTest.php:27
PasswordTest\testInvalidPlaintext
testInvalidPlaintext()
Definition
PasswordTest.php:35
tests
phpunit
includes
password
PasswordTest.php
Generated on Mon Nov 25 2024 15:36:31 for MediaWiki by
1.10.0