mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-25 14:22:42 +00:00
22 lines
459 B
PHP
22 lines
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');
|
||
|
}
|
||
|
|
||
|
}
|