ReflectionConstantBCTest.php 664 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /*
  3. * This file is part of Psy Shell.
  4. *
  5. * (c) 2012-2018 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\ReflectionConstant;
  12. class ReflectionConstantBCTest extends \PHPUnit\Framework\TestCase
  13. {
  14. const CONSTANT_ONE = 'one';
  15. public function testConstruction()
  16. {
  17. $refl = new ReflectionConstant($this, 'CONSTANT_ONE');
  18. $this->assertInstanceOf('Psy\Reflection\ReflectionConstant', $refl);
  19. $this->assertInstanceOf('Psy\Reflection\ReflectionClassConstant', $refl);
  20. }
  21. }