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