-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathSystemTestARM64.php
More file actions
47 lines (39 loc) · 1.08 KB
/
SystemTestARM64.php
File metadata and controls
47 lines (39 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Utopia PHP Framework
*
*
* @link https://github.com/utopia-php/framework
*
* @author Eldad Fux <eldad@appwrite.io>
*
* @version 1.0 RC4
*
* @license The MIT License (MIT) <http://www.opensource.org/licenses/mit-license.php>
*/
namespace Utopia\Tests;
use PHPUnit\Framework\TestCase;
use Utopia\System\System;
class SystemTestARM64 extends TestCase
{
public function setUp(): void
{
}
public function tearDown(): void
{
}
public function testOs()
{
$this->assertTrue(System::isArm64());
$this->assertFalse(System::isArmV7());
$this->assertFalse(System::isArmV8());
$this->assertFalse(System::isPPC());
$this->assertFalse(System::isX86());
$this->assertTrue(System::isArch(System::ARM64));
$this->assertFalse(System::isArch(System::ARMV7));
$this->assertFalse(System::isArch(System::ARMV8));
$this->assertFalse(System::isArch(System::PPC));
$this->assertFalse(System::isArch(System::X86));
$this->assertEquals(System::ARM64, System::getArchEnum());
}
}