ReflectionNamespaceTest.php 806 B

123456789101112131415161718192021222324252627282930313233
  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\ReflectionNamespace;
  12. class ReflectionNamespaceTest extends \Psy\Test\TestCase
  13. {
  14. public function testConstruction()
  15. {
  16. $refl = new ReflectionNamespace('Psy\\Test\\Reflection');
  17. $this->assertSame('Psy\\Test\\Reflection', $refl->getName());
  18. $this->assertSame('Psy\\Test\\Reflection', (string) $refl);
  19. }
  20. public function testNotYetImplemented()
  21. {
  22. $this->expectException(\RuntimeException::class);
  23. ReflectionNamespace::export('Psy\\Test\\Reflection');
  24. $this->fail();
  25. }
  26. }