mirror of
https://0xacab.org/radar/radar-wp.git
synced 2025-04-21 15:26:29 +02:00
Initial import.
This commit is contained in:
commit
86383280c9
428 changed files with 68738 additions and 0 deletions
7
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/DeeperNamespaceParent.php
vendored
Normal file
7
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/DeeperNamespaceParent.php
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Common\Reflection;
|
||||
|
||||
class SameNamespaceParent extends Dummies\NoParent
|
||||
{
|
||||
}
|
8
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/Dummies/NoParent.php
vendored
Normal file
8
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/Dummies/NoParent.php
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Common\Reflection\Dummies;
|
||||
|
||||
class NoParent
|
||||
{
|
||||
public $test;
|
||||
}
|
7
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/FullyClassifiedParent.php
vendored
Normal file
7
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/FullyClassifiedParent.php
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Common\Reflection;
|
||||
|
||||
class FullyClassifiedParent extends \Doctrine\Tests\Common\Reflection\NoParent
|
||||
{
|
||||
}
|
8
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/NoParent.php
vendored
Normal file
8
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/NoParent.php
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Common\Reflection;
|
||||
|
||||
class NoParent
|
||||
{
|
||||
public $test;
|
||||
}
|
7
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/SameNamespaceParent.php
vendored
Normal file
7
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/SameNamespaceParent.php
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Common\Reflection;
|
||||
|
||||
class SameNamespaceParent extends NoParent
|
||||
{
|
||||
}
|
45
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/StaticReflectionParserTest.php
vendored
Normal file
45
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/StaticReflectionParserTest.php
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Common\Reflection;
|
||||
|
||||
use Doctrine\Tests\DoctrineTestCase;
|
||||
use Doctrine\Common\Reflection\StaticReflectionParser;
|
||||
use Doctrine\Common\Reflection\Psr0FindFile;
|
||||
|
||||
class StaticReflectionParserTest extends DoctrineTestCase
|
||||
{
|
||||
public function testParentClass()
|
||||
{
|
||||
$testsRoot = substr(__DIR__, 0, -strlen(__NAMESPACE__) - 1);
|
||||
$paths = array(
|
||||
'Doctrine\\Tests' => array($testsRoot),
|
||||
);
|
||||
$noParentClassName = 'Doctrine\\Tests\\Common\\Reflection\\NoParent';
|
||||
$staticReflectionParser = new StaticReflectionParser($noParentClassName, new Psr0FindFile($paths));
|
||||
$declaringClassName = $staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', 'test')->getClassName();
|
||||
$this->assertEquals($noParentClassName, $declaringClassName);
|
||||
|
||||
$className = 'Doctrine\\Tests\\Common\\Reflection\\FullyClassifiedParent';
|
||||
$staticReflectionParser = new StaticReflectionParser($className, new Psr0FindFile($paths));
|
||||
$declaringClassName = $staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', 'test')->getClassName();
|
||||
$this->assertEquals($noParentClassName, $declaringClassName);
|
||||
|
||||
$className = 'Doctrine\\Tests\\Common\\Reflection\\SameNamespaceParent';
|
||||
$staticReflectionParser = new StaticReflectionParser($className, new Psr0FindFile($paths));
|
||||
$declaringClassName = $staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', 'test')->getClassName();
|
||||
$this->assertEquals($noParentClassName, $declaringClassName);
|
||||
|
||||
$dummyParentClassName = 'Doctrine\\Tests\\Common\\Reflection\\Dummies\\NoParent';
|
||||
|
||||
$className = 'Doctrine\\Tests\\Common\\Reflection\\DeeperNamespaceParent';
|
||||
$staticReflectionParser = new StaticReflectionParser($className, new Psr0FindFile($paths));
|
||||
$declaringClassName = $staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', 'test')->getClassName();
|
||||
$this->assertEquals($dummyParentClassName, $declaringClassName);
|
||||
|
||||
$className = 'Doctrine\\Tests\\Common\\Reflection\\UseParent';
|
||||
$staticReflectionParser = new StaticReflectionParser($className, new Psr0FindFile($paths));
|
||||
$declaringClassName = $staticReflectionParser->getStaticReflectionParserForDeclaringClass('property', 'test')->getClassName();
|
||||
$this->assertEquals($dummyParentClassName, $declaringClassName);
|
||||
|
||||
}
|
||||
}
|
9
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/UseParent.php
vendored
Normal file
9
vendor/doctrine/common/tests/Doctrine/Tests/Common/Reflection/UseParent.php
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Common\Reflection;
|
||||
|
||||
use Doctrine\Tests\Common\Reflection\Dummies\NoParent as Test;
|
||||
|
||||
class UseParent extends Test
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue