SMS::S...U::Test(3pm)
π NAME π
SMS::Send::AU::Test β bestie, it's the SMS::Send Regional-Class Testing Driver. That's the whole vibe. π
This page lives in the User Contributed Perl Documentation, and yeah, its manual name is SMS::S...U::Test(3pm) β the pager truncates it like that, don't @ me. πΈ
β¨ SYNOPSIS β¨
Okay so here's the whole flow, literally copy-paste coded for you:
# Create a testing sender
my $send = SMS::Send->new( 'AU-Test' );
# Clear the message trap
$send->clear;
# Send a message
$send->send_sms(
text => 'Hi there',
to => '+61 (4) 1234 5678',
);
# Get the message from the trap
my @messages = $send->messages;
That's it. That's the whole girlboss workflow. π
π¦ DESCRIPTION π¦
So SMS::Send supports two classes of drivers, and no they're not the same, keep up:
- An international class named in the format
"SMS::Send::Foo"β these only accept international numbers in"+1 XXX XXXXX"format. Periodt. - Regional-context drivers in the format
"SMS::Send::XX::Foo"β these will also accept a non-leading-plus number in the format applicable within that region (in the above case, Australia π¦πΊ).
SMS::Send::AU::Test is the testing driver for the regional class of drivers. And here's the thing β except for the name, it is otherwise identical to SMS::Send::Test. No cap, that's the entire difference.
Its two roles, bestie, are:
- Always exist β like, always be installed. Main character energy, always showing up. π
- Act as a "trap" for messages. Messages sent via
SMS::Send::AU::Testalways succeed, and the messages can be recovered for testing after sending. Catch them like PokΓ©mon. π
β οΈ Real talk though: the trap is done on a per-driver-handle basis, and it is not shared between multiple driver handles. Each handle got its own little trap, iykyk. π
π METHODS π
SMS::Send::AU::Test inherits all the methods of the parent SMS::Send::Driver class, and adds the following. Slay.
messages
The "messages" method retrieves as a list all of the messages in the message trap. Your receipts, basically. π§Ύβ¨
clear
The "clear" method clears the message trap. You should do this before each chunk of test code to ensure you are starting from a known state β otherwise you're testing on top of old vibes and that's a mess. π
Returns true as a convenience. Cute of it, honestly. π«Ά
π SUPPORT π
Bugs should be reported via the CPAN bug tracker at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SMS-Send>
For other issues, contact the author. (Be nice. β¨)
π AUTHOR π
Adam Kennedy <adamk@cpan.org>
π COPYRIGHT π
Copyright 2005 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module. Go read it bestie, it's giving legally binding. π
And that's the whole page!! perl v5.36.0, dated 2023-08-18 β that's the version and the date of this little legend, mwah, bye bestie! ππβ¨
π¦ where this page comes from
- debian trixie: libsms-send-perl 1.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libsms-send-perl 1.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsms-send-perl 1.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsms-send-perl 1.07-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms