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:
2026-04-05 09:49:30 -07:00
commit 373ebc8c93
1284 changed files with 409372 additions and 0 deletions

33
stubs/testCacheMapIn.php Normal file
View File

@@ -0,0 +1,33 @@
<?php
/**
* Created by PhpStorm.
* User: mshallop
* Date: 2/26/19
* Time: 2:12 PM
*/
// load the namaste environment
require_once(dirname(__DIR__) . '/config/sneakerstrap.inc');
// generate test data (note: we're not instantiating anything)
$data = gatTestMongo::buildTestData(10);
$meta = [
META_TEMPLATE => TEMPLATE_CLASS_TEST_MONGO,
META_CLIENT => CLIENT_CLIENT,
META_CLIENT_IP => STRING_SESSION_HOME,
META_EVENT_GUID => guid(), // simulate a broker event by generating the event guid
];
$payload = [
BROKER_REQUEST => BROKER_REQUEST_CREATE,
BROKER_DATA => $data,
BROKER_META_DATA => $meta
];
$errors = [];
// start the test by invoking the validation function
$res = validateMetaData($payload,$errors);
if ($res)
echo 'w00t';
else
var_export($errors);
echo PHP_EOL;