OperatingSystemTest.php 814 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of sebastian/environment.
  4. *
  5. * (c) 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 SebastianBergmann\Environment;
  11. use PHPUnit\Framework\TestCase;
  12. /**
  13. * @covers \SebastianBergmann\Environment\OperatingSystem
  14. */
  15. final class OperatingSystemTest extends TestCase
  16. {
  17. /**
  18. * @var \SebastianBergmann\Environment\OperatingSystem
  19. */
  20. private $os;
  21. protected function setUp(): void
  22. {
  23. $this->os = new OperatingSystem;
  24. }
  25. /**
  26. * @requires OS Linux
  27. */
  28. public function testFamilyCanBeRetrieved(): void
  29. {
  30. $this->assertEquals('Linux', $this->os->getFamily());
  31. }
  32. }