1--TEST--
2ReflectionClass::isInterface() method
3--CREDITS--
4Felix De Vliegher <felix.devliegher@gmail.com>
5#testfest roosendaal on 2008-05-10
6--FILE--
7<?php
8
9interface TestInterface {}
10class TestClass {}
11interface DerivedInterface extends TestInterface {}
12
13$reflectionClass = new ReflectionClass('TestInterface');
14$reflectionClass2 = new ReflectionClass('TestClass');
15$reflectionClass3 = new ReflectionClass('DerivedInterface');
16
17var_dump($reflectionClass->isInterface());
18var_dump($reflectionClass2->isInterface());
19var_dump($reflectionClass3->isInterface());
20
21?>
22--EXPECT--
23bool(true)
24bool(false)
25bool(true)
26