mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
22 lines
413 B
PHP
22 lines
413 B
PHP
--TEST--
|
|
ReflectionClass::isFinal() method
|
|
--CREDITS--
|
|
Felix De Vliegher <felix.devliegher@gmail.com>
|
|
#testfest roosendaal on 2008-05-10
|
|
--FILE--
|
|
<?php
|
|
|
|
class TestClass {}
|
|
final class TestFinalClass {}
|
|
|
|
$normalClass = new ReflectionClass('TestClass');
|
|
$finalClass = new ReflectionClass('TestFinalClass');
|
|
|
|
var_dump($normalClass->isFinal());
|
|
var_dump($finalClass->isFinal());
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(true)
|