/
CliTest.php
44 lines (43 loc) · 1.13 KB
/
CliTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* Test the CLI.
*
* PHP version 5
*
* @category Horde
* @package Push
* @subpackage UnitTests
* @author Gunnar Wrobel <wrobel@pardus.de>
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @link http://www.horde.org/libraries/Horde_Push
*/
/**
* Test the CLI.
*
* Copyright 2011-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (LGPL). If you did not
* receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @category Horde
* @package Push
* @subpackage UnitTests
* @author Gunnar Wrobel <wrobel@pardus.de>
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @link http://www.horde.org/libraries/Horde_Push
*/
class Horde_Push_Unit_Push_CliTest
extends Horde_Push_TestCase
{
public function testEmpty()
{
ob_start();
$_SERVER['argv'] = array(
'test',
'yaml://' . __DIR__ . '/../../fixtures/push.yaml'
);
Horde_Push_Cli::main(array('no_exit' => true));
$output = ob_get_clean();
$this->assertContains('Pushed "YAML".', $output);
}
}