feat: removes expectation api for a plugin

This commit is contained in:
Nuno Maduro
2020-12-13 22:35:30 +01:00
parent 23eebc8127
commit 5d7f262f4a
60 changed files with 19 additions and 1875 deletions

View File

@ -1,33 +0,0 @@
<?php
declare(strict_types=1);
namespace Pest\Support;
use Closure;
final class Extendable
{
/**
* The extendable class.
*
* @var string
*/
private $extendableClass;
/**
* Creates a new extendable instance.
*/
public function __construct(string $extendableClass)
{
$this->extendableClass = $extendableClass;
}
/**
* Register a custom extend.
*/
public function extend(string $name, Closure $extend): void
{
$this->extendableClass::extend($name, $extend);
}
}