FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phpbench/tests/System/EvalCommandTest.php at program-executor · phpbench/phpbench · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
phpbench
/
phpbench
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
133
Star
2k
Code
Issues
28
Pull requests
10
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phpbench
/
tests
/
System
/
EvalCommandTest.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (32 loc) · 921 Bytes
Breadcrumbs
phpbench
/
tests
/
System
/
EvalCommandTest.php
Copy path
File metadata and controls
37 lines (32 loc) · 921 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
32
33
34
35
36
37
<?php
/*
* This file is part of the PHPBench package
*
* (c) Daniel Leech <daniel@dantleech.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace
PhpBench
\
Tests
\
System
;
use
function
escapeshellarg
;
class
EvalCommandTest
extends
SystemTestCase
{
public
function
testEvaluate
():
void
{
$
this
->
getBenchResult
(
null
,
'
--store
'
);
$
process
=
$
this
->
phpbench
(
'
eval "2 > 1"
'
);
$
output
=
$
process
->
getOutput
();
self
::
assertEquals
(
0
,
$
process
->
getExitCode
());
}
public
function
testEvaluateWithParams
():
void
{
$
this
->
getBenchResult
(
null
,
'
--store
'
);
$
process
=
$
this
->
phpbench
(
'
eval "2 > foobar"
'
.
escapeshellarg
(
json_encode
([
'
foobar
'
=>
3
]))
);
self
::
assertEquals
(
0
,
$
process
->
getExitCode
());
}
}
Back
|
FazBrowse Home
|
New Git URL