]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/include/utils/CheckPlatformTest.php
Added unit tests.
[Github/sugarcrm.git] / tests / include / utils / CheckPlatformTest.php
1 <?php
2 require_once 'include/utils.php';
3
4 class CheckPlatformTest extends Sugar_PHPUnit_Framework_TestCase
5 {
6     public function setUp()
7     {
8         $this->_isOnWindows = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN');
9     }
10     
11     public function testVerifyIfWeAreOnWindows()
12     {
13         $this->assertEquals(is_windows(), $this->_isOnWindows);
14     }
15 }
16