FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
allure-phpunit/scripts/CiScripts.php at main · allure-framework/allure-phpunit · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
allure-framework
/
allure-phpunit
Public
Notifications
You must be signed in to change notification settings
Fork
34
Star
66
Code
Issues
11
Pull requests
6
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
allure-phpunit
/
scripts
/
CiScripts.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (24 loc) · 724 Bytes
Breadcrumbs
allure-phpunit
/
scripts
/
CiScripts.php
Copy path
File metadata and controls
27 lines (24 loc) · 724 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
<?php
declare
(strict_types=
1
);
namespace
Qameta
\
Allure
\
PHPUnit
\
Scripts
;
final
class
CiScripts
{
/**
* Prints the version of PHPUnit.
*/
public
static
function
printPhpUnitVersion
():
void
{
if
(
class_exists
(\
PHPUnit
\
Runner
\Version::class)) {
echo
(\
PHPUnit
\
Runner
\Version::
id
());
}
}
/**
* Prints the version of the PHPUnit XML schema.
* We use this in the CI pipeline to deside which configuration file to use.
*/
public
static
function
printConfigSchemaVersion
():
void
{
if
(
class_exists
(\
PHPUnit
\
Runner
\Version::class)) {
echo
(
preg_replace
(
'
/^(\d+\.\d+)\..*$/
'
,
'
$1
'
, \
PHPUnit
\
Runner
\Version::
id
()));
}
}
}
Back
|
FazBrowse Home
|
New Git URL