PHP Classes

File: tests/Support/Facades/MemoizeTest.php

Recommend this page to a friend!
  Classes of tomloprod   Memoize   tests/Support/Facades/MemoizeTest.php   Download  
File: tests/Support/Facades/MemoizeTest.php
Role: Example script
Content typex: text/plain
Description: Example script
Class: Memoize
Store and retrieve cache values in arrays
Author: By
Last change: Update of tests/Support/Facades/MemoizeTest.php
Date: 1 month ago
Size: 319 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

use
Tomloprod\Memoize\Services\MemoizeManager;
use
Tomloprod\Memoize\Support\Facades\Memoize;

test('facade returns the same instance', function (): void {
   
$instance1 = MemoizeManager::instance();
   
$instance2 = Memoize::instance();

   
expect($instance1)->toBe($instance2);
});