OperatingSystemTest.php 824B

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