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

10 lines
305 B
PHP
Raw Normal View History

2025-04-29 23:21:13 -04:00
<?php
2025-04-29 23:55:51 -04:00
namespace ProVM\Tests\Extension;
2025-04-29 23:21:13 -04:00
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));
}
}