Files
oficial/app/tests/extension/testMethodsTrait.php

19 lines
329 B
PHP
Raw Normal View History

2025-04-29 23:55:51 -04:00
<?php
2025-05-08 11:13:17 -04:00
namespace Tests\Extension;
2025-04-29 23:55:51 -04:00
trait testMethodsTrait
{
use ObjectHasMethodTrait;
public function testMethods(): void
{
$object = $this->model;
foreach ($this->methods as $method) {
$this->assertObjectHasMethod($method, $object);
}
}
protected array $methods = [];
2025-05-08 11:13:17 -04:00
}