mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
30 lines
816 B
PHP
30 lines
816 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
|
|
namespace Tests\PHPUnit\phpOMS\Utils\Git;
|
|
|
|
require_once __DIR__ . '/../../Autoloader.php';
|
|
|
|
use phpOMS\Utils\Git\Repository;
|
|
|
|
class RepositoryTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testDefault()
|
|
{
|
|
$repo = new Repository(realpath(__DIR__ . '/../../../../../'));
|
|
self::assertTrue('Orange-Management' === $repo->getName() || 'build' === $repo->getName());
|
|
self::assertEquals(str_replace('\\', '/', realpath(__DIR__ . '/../../../../../.git')), str_replace('\\', '/', $repo->getDirectoryPath()));
|
|
}
|
|
}
|