summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionClass_isAbstract_basic.phpt
blob: a7d19829a860e3ed3324c42771040586e9377684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
ReflectionClass::isAbstract() method
--CREDITS--
Felix De Vliegher <felix.devliegher@gmail.com>
#testfest roosendaal on 2008-05-10
--FILE--
<?php

class TestClass {}
abstract class TestAbstractClass {}

$testClass = new ReflectionClass('TestClass');
$abstractClass = new ReflectionClass('TestAbstractClass');

var_dump($testClass->isAbstract());
var_dump($abstractClass->isAbstract());

?>
--EXPECT--
bool(false)
bool(true)