function testDetectionOfFinalMethods() { $reflection = new SimpleReflection('AnyOldClass'); $this->assertFalse($reflection->hasFinal()); $reflection = new SimpleReflection('AnyOldLeafClassWithAFinal'); $this->assertTrue($reflection->hasFinal()); }