Archive: Namaste PHP AMQP framework v1.0 (2017-2020)
952 days continuous production uptime, 40k+ tp/s single node. Original corpo Bitbucket history not included — clean archive commit.
This commit is contained in:
23
stubs/testEmaiValidation.php
Normal file
23
stubs/testEmaiValidation.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
require_once(dirname(__DIR__) . '/config/sneakerstrap.inc');
|
||||
|
||||
$file = basename(__FILE__);
|
||||
$errors = [];
|
||||
$meta = [
|
||||
META_TEMPLATE => TEMPLATE_CLASS_USERS,
|
||||
META_CLIENT => CLIENT_SYSTEM,
|
||||
META_EVENT_GUID => guid(),
|
||||
META_DO_CACHE => 0
|
||||
];
|
||||
$obj = new gacUsers($meta);
|
||||
if (!$obj->status)
|
||||
exit (sprintf( INFO_LOC, $file, __LINE__) . TEMPLATE_CLASS_USERS);
|
||||
$validEmail = 'mshallop@maplehillchaos.com';
|
||||
$invalidEmail = 'gooberJoe@argle';
|
||||
$complexEmail = 'mike@sales.executives.goodgirl.jewelery';
|
||||
|
||||
$obj->checkWBL($validEmail);
|
||||
|
||||
echo $validEmail . 'is ' . ($obj->status) ? '' : 'in' . 'valid with state: ' . $obj->state . $eos;
|
||||
|
||||
echo $eos . $eos . 'program ends... ' . $eos . $eos;
|
||||
Reference in New Issue
Block a user