Lines Matching refs:classes
86 $classes = $ts->getClasses();
97 array_keys($classes)
108 $classes = $ts->getClasses();
110 $this->assertEquals(['Test', 'AnonymousClass:4#23'], array_keys($classes));
111 $this->assertEquals(['methodOne', 'methodTwo'], array_keys($classes['Test']['methods']));
131 $classes = $ts->getClasses();
133 $this->assertArrayHasKey('class_with_multiple_anonymous_classes_and_functions', $classes);
134 $this->assertArrayHasKey('AnonymousClass:6#23', $classes);
135 $this->assertArrayHasKey('AnonymousClass:12#53', $classes);
136 …$this->assertArrayHasKey('m', $classes['class_with_multiple_anonymous_classes_and_functions']['met…
137 …$this->assertArrayHasKey('anonymousFunction:18#81', $classes['class_with_multiple_anonymous_classe…
138 …$this->assertArrayHasKey('anonymousFunction:22#108', $classes['class_with_multiple_anonymous_class…
148 $classes = $ts->getClasses();
150 $this->assertArrayHasKey('class_with_method_named_empty', $classes);
151 $this->assertArrayHasKey('empty', $classes['class_with_method_named_empty']['methods']);
161 $classes = $ts->getClasses();
163 $this->assertSame(5, $classes['Example']['methods']['even']['startLine']);
164 $this->assertSame(12, $classes['Example']['methods']['even']['endLine']);
166 $this->assertSame(7, $classes['Example']['methods']['anonymousFunction:7#28']['startLine']);
167 $this->assertSame(9, $classes['Example']['methods']['anonymousFunction:7#28']['endLine']);