説明なし

LibraryTest.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /*
  3. * This file is part of PharIo\Manifest.
  4. *
  5. * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
  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 PharIo\Manifest;
  11. use PHPUnit\Framework\TestCase;
  12. /**
  13. * @covers PharIo\Manifest\Library
  14. * @covers PharIo\Manifest\Type
  15. */
  16. class LibraryTest extends TestCase {
  17. /**
  18. * @var Library
  19. */
  20. private $type;
  21. protected function setUp() {
  22. $this->type = Type::library();
  23. }
  24. public function testCanBeCreated() {
  25. $this->assertInstanceOf(Library::class, $this->type);
  26. }
  27. public function testIsNotApplication() {
  28. $this->assertFalse($this->type->isApplication());
  29. }
  30. public function testIsLibrary() {
  31. $this->assertTrue($this->type->isLibrary());
  32. }
  33. public function testIsNotExtension() {
  34. $this->assertFalse($this->type->isExtension());
  35. }
  36. }