Assert nuevo

This commit is contained in:
Juan Pablo Vial
2025-04-29 23:21:13 -04:00
parent bae5c1740d
commit ad0fd82a9e

View File

@ -0,0 +1,10 @@
<?php
namespace ProVM\Unit;
trait ObjectHasMethodTrait
{
public function assertObjectHasMethod(string $method, object $object): void
{
$this->assertTrue(method_exists($object, $method), sprintf('The object %s does not have the method %s', get_class($object), $method));
}
}