mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
refactor: renames traits
This commit is contained in:
23
src/Concerns/Expectable.php
Normal file
23
src/Concerns/Expectable.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pest\Concerns;
|
||||
|
||||
use Pest\Expectation;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
trait Expectable
|
||||
{
|
||||
/**
|
||||
* Creates a new expectation.
|
||||
*
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function expect($value): Expectation
|
||||
{
|
||||
return new Expectation($value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user