public function testSetTestMethodPrefix()
{
$this->if($test = new self())->then->object($test->setTestMethodPrefix($testMethodPrefix = uniqid('_')))->isIdenticalTo($test)->string($test->getTestMethodPrefix())->isEqualTo($testMethodPrefix)->object($test->setTestMethodPrefix($testMethodPrefix = '/^test/i'))->isIdenticalTo($test)->string($test->getTestMethodPrefix())->isEqualTo($testMethodPrefix)->object($test->setTestMethodPrefix($testMethodPrefix = '_' . rand(0, PHP_INT_MAX)))->isIdenticalTo($test)->string($test->getTestMethodPrefix())->isEqualTo((string) $testMethodPrefix)->object($test->setTestMethodPrefix($testMethodPrefix = "_0"))->isIdenticalTo($test)->string($test->getTestMethodPrefix())->isEqualTo((string) $testMethodPrefix)->exception(function () use($test) {
$test->setTestMethodPrefix('');
})->isInstanceOf('mageekguy\\atoum\\exceptions\\logic\\invalidArgument')->hasMessage('Test method prefix must not be empty')->exception(function () use($test) {
$test->setTestMethodPrefix('0');
})->isInstanceOf('mageekguy\\atoum\\exceptions\\logic\\invalidArgument')->hasMessage('Test method prefix must a valid regex or identifier')->exception(function () use($test) {
$test->setTestMethodPrefix('/:(/');
})->isInstanceOf('mageekguy\\atoum\\exceptions\\logic\\invalidArgument')->hasMessage('Test method prefix must a valid regex or identifier');
}