Lines Matching refs:class
11 $class = new Class_('Foo', ['type' => Modifiers::ABSTRACT]);
12 $this->assertTrue($class->isAbstract());
14 $class = new Class_('Foo');
15 $this->assertFalse($class->isAbstract());
19 $class = new Class_('Foo', ['type' => Modifiers::FINAL]);
20 $this->assertTrue($class->isFinal());
22 $class = new Class_('Foo');
23 $this->assertFalse($class->isFinal());
31 $class = new Class_('Foo', [
39 $this->assertSame($traitUses, $class->getTraitUses());
48 $class = new Class_('Foo', [
59 $this->assertSame($methods, $class->getMethods());
67 $class = new Class_('Foo', [
76 $this->assertSame($constants, $class->getConstants());
84 $class = new Class_('Foo', [
94 $this->assertSame($properties, $class->getProperties());
103 $class = new Class_('Foo', [
114 $this->assertSame($fooProp, $class->getProperty('foo1'));
115 $this->assertSame($barProp, $class->getProperty('BAR1'));
116 $this->assertSame($fooBarProp, $class->getProperty('foo2'));
117 $this->assertSame($fooBarProp, $class->getProperty('bar2'));
118 $this->assertNull($class->getProperty('bar1'));
119 $this->assertNull($class->getProperty('nonExisting'));
125 $class = new Class_('Foo', [
134 $this->assertSame($methodConstruct, $class->getMethod('__construct'));
135 $this->assertSame($methodTest, $class->getMethod('test'));
136 $this->assertNull($class->getMethod('nonExisting'));