19 lines
329 B
PHP
19 lines
329 B
PHP
<?php
|
|
namespace Tests\Extension;
|
|
|
|
trait testMethodsTrait
|
|
{
|
|
use ObjectHasMethodTrait;
|
|
|
|
public function testMethods(): void
|
|
{
|
|
$object = $this->model;
|
|
|
|
foreach ($this->methods as $method) {
|
|
$this->assertObjectHasMethod($method, $object);
|
|
}
|
|
}
|
|
|
|
protected array $methods = [];
|
|
}
|