Skip to content

AutonameTest

TestCase for the autoname function

  • Full name: \AutonameTest
  • Parent class: TestCase

Methods

testAutonameEven

Autonames should be random, even length

public testAutonameEven(): mixed

testAutonameOdd

Autonames should be random, odd length

public testAutonameOdd(): mixed

testAutonameNoLength

Try to fail autonames

public testAutonameNoLength(): mixed

testAutonameNegativeLength

Try to fail it with invalid input

public testAutonameNegativeLength(): mixed

TODO: What's corect behaviour here? An exception?


testAutonameLength1

Test with a length, that may be too short length is maximum - autoname can return something shorter.

public testAutonameLength1(): mixed


Automatically generated on 2025-03-18