FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cli/tests/CommandMock.php at master · aplus-framework/cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
aplus-framework
/
cli
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
7
Star
237
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
cli
/
tests
/
CommandMock.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (28 loc) · 863 Bytes
Breadcrumbs
cli
/
tests
/
CommandMock.php
Copy path
File metadata and controls
31 lines (28 loc) · 863 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<?php
/*
* This file is part of Aplus Framework CLI Library.
*
* (c) Natan Felles <natanfelles@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Tests
\
CLI
;
use
Framework
\
CLI
\
CLI
;
use
Framework
\
CLI
\
Command
;
class
CommandMock
extends
Command
{
protected
string
$
name
=
'
test
'
;
protected
string
$
description
=
'
Lorem ipsum
'
;
protected
string
$
usage
=
'
test
'
;
protected
array
$
options
= [
'
-b
'
=>
'
foo bar
'
,
];
public
function
run
() :
void
{
CLI
::
write
(
\print_r
(
$
this
->
console
->
getOptions
(),
true
));
CLI
::
write
(
\print_r
(
$
this
->
console
->
getOption
(
'
o
'
),
true
));
CLI
::
write
(
\print_r
(
$
this
->
console
->
getArguments
(),
true
));
CLI
::
write
(
\print_r
(
$
this
->
console
->
getArgument
(
1
),
true
));
}
}
Back
|
FazBrowse Home
|
New Git URL