mirror of
https://github.com/pestphp/pest.git
synced 2026-12-03 22:45:06 +01:00
25 lines
342 B
PHP
25 lines
342 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Concerns;
|
|
|
|
use Pest\Expectation;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
trait Expectable
|
|
{
|
|
/**
|
|
* @template TValue
|
|
*
|
|
* @param TValue $value
|
|
* @return Expectation<TValue>
|
|
*/
|
|
public function expect(mixed $value): Expectation
|
|
{
|
|
return new Expectation($value);
|
|
}
|
|
}
|