TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
830 B
29 lines
830 B
<?php
|
|
|
|
class ClassTest extends \BaseTest
|
|
{
|
|
public function testReAssignThis()
|
|
{
|
|
$this->exec('Cannot re-assign $this', 're-assign-this.php');
|
|
}
|
|
|
|
public function testAccessProtectedProperty()
|
|
{
|
|
$this->exec('Cannot access protected property `settings` of class `DevConfig`', 'protected-property.php');
|
|
}
|
|
|
|
public function testCallAbstractParentMethod()
|
|
{
|
|
$this->exec('Cannot call abstract method `AbsBase::show()`', 'parent-abstract-method.php');
|
|
}
|
|
|
|
public function testNewAbstractClass()
|
|
{
|
|
$this->exec('abstract class `AbstractBase` cannot be instantiated', 'abstract-class-new.php');
|
|
}
|
|
|
|
public function testOverridePrivateMethod()
|
|
{
|
|
$this->exec('Cannot override private method `Base::doWork()`', 'override-private-method.php');
|
|
}
|
|
}
|
|
|