public function InstantiatorTest::getInstantiableClasses in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/instantiator/tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php \DoctrineTest\InstantiatorTest\InstantiatorTest::getInstantiableClasses()
Provides a list of instantiable classes (existing)
Return value
string[][]
File
- vendor/
doctrine/ instantiator/ tests/ DoctrineTest/ InstantiatorTest/ InstantiatorTest.php, line 162
Class
- InstantiatorTest
- Tests for { @author Marco Pivetta <ocramius@gmail.com>
Namespace
DoctrineTest\InstantiatorTestCode
public function getInstantiableClasses() {
$classes = array(
array(
'stdClass',
),
array(
__CLASS__,
),
array(
'Doctrine\\Instantiator\\Instantiator',
),
array(
'Exception',
),
array(
'PharException',
),
array(
'DoctrineTest\\InstantiatorTestAsset\\SimpleSerializableAsset',
),
array(
'DoctrineTest\\InstantiatorTestAsset\\ExceptionAsset',
),
array(
'DoctrineTest\\InstantiatorTestAsset\\FinalExceptionAsset',
),
array(
'DoctrineTest\\InstantiatorTestAsset\\PharExceptionAsset',
),
array(
'DoctrineTest\\InstantiatorTestAsset\\UnCloneableAsset',
),
array(
'DoctrineTest\\InstantiatorTestAsset\\XMLReaderAsset',
),
);
if (\PHP_VERSION_ID === 50429 || \PHP_VERSION_ID === 50513) {
return $classes;
}
$classes = array_merge($classes, array(
array(
'PharException',
),
array(
'ArrayObject',
),
array(
'DoctrineTest\\InstantiatorTestAsset\\ArrayObjectAsset',
),
array(
'DoctrineTest\\InstantiatorTestAsset\\SerializableArrayObjectAsset',
),
));
if (\PHP_VERSION_ID >= 50600) {
$classes[] = array(
'DoctrineTest\\InstantiatorTestAsset\\WakeUpNoticesAsset',
);
$classes[] = array(
'DoctrineTest\\InstantiatorTestAsset\\UnserializeExceptionArrayObjectAsset',
);
}
return $classes;
}