đ Method Assertions â
toHaveMethod() â
php
$this
->allClasses()
->fromRaw('<?php class Foo { public function bar() {} }')
->should(fn(Expr $expr) => $expr->toHaveMethod('bar'));toHaveConstructor() â
php
$this
->allClasses()
->should(fn(Expr $expr) => $expr->toHaveConstructor());toHaveDestructor() â
php
$this
->allClasses()
->should(fn(Expr $expr) => $expr->toHaveDestructor());