ManifestManagerTest.php 907 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4. * This file is part of the EasyWeChatComposer.
  5. *
  6. * (c) 张铭阳 <mingyoungcheung@gmail.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. namespace EasyWeChatComposer\Tests;
  12. use EasyWeChatComposer\ManifestManager;
  13. use PHPUnit\Framework\TestCase;
  14. class ManifestManagerTest extends TestCase
  15. {
  16. private $vendorPath;
  17. private $manifestPath;
  18. protected function getManifestManager()
  19. {
  20. return new ManifestManager(
  21. $this->vendorPath = __DIR__.'/__fixtures__/vendor/',
  22. $this->manifestPath = __DIR__.'/__fixtures__/extensions.php'
  23. );
  24. }
  25. public function testUnlink()
  26. {
  27. $this->assertInstanceOf(ManifestManager::class, $this->getManifestManager()->unlink());
  28. $this->assertFalse(file_exists($this->manifestPath));
  29. }
  30. }