ReflectionConstantBCTest.php 679 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of Psy Shell.
  4. *
  5. * (c) 2012-2023 Justin Hileman
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Psy\Test\Reflection;
  11. use Psy\Reflection\ReflectionClassConstant;
  12. use Psy\Reflection\ReflectionConstant;
  13. class ReflectionConstantBCTest extends \Psy\Test\TestCase
  14. {
  15. const CONSTANT_ONE = 'one';
  16. public function testConstruction()
  17. {
  18. $refl = new ReflectionConstant($this, 'CONSTANT_ONE');
  19. $this->assertInstanceOf(ReflectionConstant::class, $refl);
  20. $this->assertInstanceOf(ReflectionClassConstant::class, $refl);
  21. }
  22. }