You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
788 B
PHP

<?php
declare(strict_types = 1);
namespace Dummy\Test;
use Dummy\Common\TestCase;
class AnonClassHolder extends TestCase
{
protected function getTest(): ClassAvailability
{
return new class extends ClassAvailability
{
};
}
protected function getTest2(): ClassAvailability
{
return new class(2) extends ClassAvailability
{
};
}
protected function getTest3(): ClassAvailability
{
return new class(2, 3) extends ClassAvailability
{
};
}
protected function getTest4(): ClassAvailability
{
return new class(2, 3) {
};
}
protected function getTest5(): ClassAvailability
{
return new class implements FooInterface {
};
}
}