Skip to content

Commit

Permalink
feat(Testing): Add Cache RepositoryAssert
Browse files Browse the repository at this point in the history
  • Loading branch information
pionl committed Jun 22, 2023
1 parent d8c32f2 commit b8636b8
Show file tree
Hide file tree
Showing 22 changed files with 1,223 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"require": {
"php": ">=8.1",
"laravel/framework": "^9",
"psr/log": "^2 | ^3"
"psr/log": "^2 | ^3",
"psr/simple-cache": "^3.0"
},
"require-dev": {
"mockery/mockery": "^1.5.0",
Expand Down
22 changes: 22 additions & 0 deletions src/Testing/Laravel/Contracts/Cache/RepositoryAddExpectation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);

namespace LaraStrict\Testing\Laravel\Contracts\Cache;

use Closure;

final class RepositoryAddExpectation
{
/**
* @param Closure(mixed, mixed, mixed, self):void|null $hook
*/
public function __construct(
public readonly mixed $return,
public readonly mixed $key,
public readonly mixed $value,
public readonly mixed $ttl = null,
public readonly ?Closure $hook = null,
) {
}
}
Loading

0 comments on commit b8636b8

Please sign in to comment.