mirror of
https://github.com/pestphp/pest.git
synced 2026-07-21 17:10:03 +02:00
13 lines
343 B
PHP
13 lines
343 B
PHP
<?php
|
|
|
|
use Tests\Fixtures\Arch\ToHaveDestructor\HasDestructor\HasDestructor;
|
|
use Tests\Fixtures\Arch\ToHaveDestructor\HasNoDestructor\HasNoDestructor;
|
|
|
|
test('class has destructor')
|
|
->expect(HasDestructor::class)
|
|
->toHaveDestructor();
|
|
|
|
test('class has no destructor')
|
|
->expect(HasNoDestructor::class)
|
|
->not->toHaveDestructor();
|