1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hubzilla_ynh.git synced 2024-09-03 19:26:21 +02:00
hubzilla_ynh/sources/library/kzykhys/git/test/PHPGit/Command/PullCommandTest.php
2016-05-17 22:35:14 +05:30

22 lines
No EOL
459 B
PHP

<?php
use PHPGit\Git;
require_once __DIR__ . '/../BaseTestCase.php';
class PullCommandTest extends BaseTestCase
{
public function testPull()
{
$git = new Git();
$git->init($this->directory);
$git->setRepository($this->directory);
$git->remote->add('origin', 'https://github.com/kzykhys/Text.git');
$git->pull('origin', 'master');
$this->assertFileExists($this->directory . '/README.md');
}
}