File contents:
```
lang=php
<?php
interface BaseInterface {
}
interface SubInterface1 extends BaseInterface {
}
interface SubInterface2 extends BaseInterface {
}
class SubClass1_0 implements BaseInterface
{
}
class SubClass2_0 implements BaseInterface
{
}
class SubClass1_1 implements SubInterface1
{
}
abstract class SubClass2_1 implements SubInterface1
{
}
class SubClass1_2 implements SubInterface2
{
}
class SubClass2_2 implements SubInterface2
{
}
```
# create a PHP file with above content anywhere within module directory space
# run the `php tools/build_class_map.php` to rebuild class map
# press the `Reset` button under the `Reset Parsed and Cached System Data` section in `System Tools` section
# place `$sub_classes = $this->Application->getSubClasses('SubInterface1');` somewhere
# confirm, that `$sub_classes` array contains following classes:
* `SubClass1_1`
# place `$sub_classes = $this->Application->getSubClasses('SubInterface1', false);` somewhere
# confirm, that `$sub_classes` array contains following classes:
* `SubClass1_1`
* `SubClass2_1`
# place `$sub_classes = $this->Application->getSubClasses('BaseInterface');` somewhere
# confirm, that `$sub_classes` array contains following classes:
* `SubClass1_0`
* `SubClass2_0`
* `SubClass1_1`
* `SubClass1_2`
* `SubClass2_2`
# in test file change interfaces into classes
# repeat above testing scenario