-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from utopia-php/feat-add-new-arch
Add ARMV7 and ARMV8 differentiators
- Loading branch information
Showing
11 changed files
with
178 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
/** | ||
* Utopia PHP Framework | ||
* | ||
* | ||
* @link https://github.com/utopia-php/framework | ||
* | ||
* @author Eldad Fux <[email protected]> | ||
* | ||
* @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 SystemTestARMV7 extends TestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
} | ||
|
||
public function tearDown(): void | ||
{ | ||
} | ||
|
||
public function testOs() | ||
{ | ||
$this->assertFalse(System::isArm64()); | ||
$this->assertTrue(System::isArmV7()); | ||
$this->assertFalse(System::isArmV8()); | ||
$this->assertFalse(System::isPPC()); | ||
$this->assertFalse(System::isX86()); | ||
|
||
$this->assertFalse(System::isArch(System::ARM64)); | ||
$this->assertTrue(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::ARMV7, System::getArchEnum()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
/** | ||
* Utopia PHP Framework | ||
* | ||
* | ||
* @link https://github.com/utopia-php/framework | ||
* | ||
* @author Eldad Fux <[email protected]> | ||
* | ||
* @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 SystemTestARMV8 extends TestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
} | ||
|
||
public function tearDown(): void | ||
{ | ||
} | ||
|
||
public function testOs() | ||
{ | ||
$this->assertFalse(System::isArm64()); | ||
$this->assertFalse(System::isArmV7()); | ||
$this->assertTrue(System::isArmV8()); | ||
$this->assertFalse(System::isPPC()); | ||
$this->assertFalse(System::isX86()); | ||
|
||
$this->assertFalse(System::isArch(System::ARM64)); | ||
$this->assertFalse(System::isArch(System::ARMV7)); | ||
$this->assertTrue(System::isArch(System::ARMV8)); | ||
$this->assertFalse(System::isArch(System::PPC)); | ||
$this->assertFalse(System::isArch(System::X86)); | ||
|
||
$this->assertEquals(System::ARMV8, System::getArchEnum()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters