Bez popisu

PhpExtensionRequirementTest.php 762B

123456789101112131415161718192021222324252627
  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\PhpExtensionRequirement
  14. */
  15. class PhpExtensionRequirementTest extends TestCase {
  16. public function testCanBeCreated() {
  17. $this->assertInstanceOf(PhpExtensionRequirement::class, new PhpExtensionRequirement('dom'));
  18. }
  19. public function testCanBeUsedAsString() {
  20. $this->assertEquals('dom', new PhpExtensionRequirement('dom'));
  21. }
  22. }