N98\Util\OperatingSystemTest::osDetection PHP Метод

osDetection() публичный Метод

public osDetection ( )
    public function osDetection()
    {
        $matrix = array(OperatingSystem::isLinux(), OperatingSystem::isWindows(), OperatingSystem::isMacOs(), OperatingSystem::isNetware());
        $this->assertCount(4, $matrix, 'Number of OSes to check for');
        $this->assertCount(1, array_filter($matrix), 'One OS must be detected');
    }