14 lines
301 B
PHP
14 lines
301 B
PHP
<?php
|
|
|
|
class UserTest extends PHPUnit_Framework_TestCase {
|
|
|
|
public function inviteTest() {
|
|
$code = Crunchbutton_User::inviteCodeGenerator();
|
|
$match = preg_match('/[qwertyuiopasdfghjklzxcvbnm]{3}[123456789]{3}[qwertyuiopasdfghjklzxcvbnm]{3}/i',$code);
|
|
|
|
$this->assertTrue($res->status);
|
|
}
|
|
|
|
|
|
}
|