php-src/ext/reflection/tests/ReflectionClass_isFinal_basic.phpt

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)