Se mueve todo a extension de pruebas

This commit is contained in:
Juan Pablo Vial
2025-04-29 23:55:51 -04:00
parent dd1741a930
commit 87c0d8c8d9
7 changed files with 57 additions and 4 deletions

View File

@ -0,0 +1,24 @@
<?php
namespace ProVM\Tests\Extension;
use Incoviba\Common\Define\Model;
trait testPropertiesTrait
{
use ObjectHasMethodTrait;
public function testProperties(): void
{
$model = $this->model;
$this->assertProperties($model);
}
protected array $properties = [];
protected function assertProperties(Model $model): void
{
foreach ($this->properties as $key) {
$this->assertObjectHasProperty($key, $model);
}
}
}