blob: 89dec75a942e4a4bdf27dd95f6eb81867f0a3c79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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');
}
}
|