NotSupportingVisivilityTests.php 590 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace League\Flysystem\Adapter;
  3. use League\Flysystem\Stub\NotSupportingVisibilityStub;
  4. use PHPUnit\Framework\TestCase;
  5. class NotSupportingVisivilityTests extends TestCase
  6. {
  7. public function testGetVisibility()
  8. {
  9. $this->expectException('LogicException');
  10. $stub = new NotSupportingVisibilityStub();
  11. $stub->getVisibility('path.txt');
  12. }
  13. public function testSetVisibility()
  14. {
  15. $this->expectException('LogicException');
  16. $stub = new NotSupportingVisibilityStub();
  17. $stub->setVisibility('path.txt', 'public');
  18. }
  19. }