Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
988ce137
Unverified
Commit
988ce137
authored
4 years ago
by
Roeland Jago Douma
Browse files
Options
Downloads
Patches
Plain Diff
Don't check on php8
Signed-off-by:
Roeland Jago Douma
<
roeland@famdouma.nl
>
parent
c084008d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/lib/App/CodeChecker/CodeCheckerTest.php
+8
-0
8 additions, 0 deletions
tests/lib/App/CodeChecker/CodeCheckerTest.php
tests/lib/App/CodeChecker/StrongComparisonCheckTest.php
+4
-0
4 additions, 0 deletions
tests/lib/App/CodeChecker/StrongComparisonCheckTest.php
with
12 additions
and
0 deletions
tests/lib/App/CodeChecker/CodeCheckerTest.php
+
8
−
0
View file @
988ce137
...
...
@@ -22,6 +22,10 @@ class CodeCheckerTest extends TestCase {
* @param string $fileToVerify
*/
public
function
testFindInvalidUsage
(
$expectedErrorToken
,
$expectedErrorCode
,
$fileToVerify
)
{
if
(
PHP_MAJOR_VERSION
>
7
)
{
$this
->
markTestSkipped
(
'Only run on php7'
);
}
$checker
=
new
CodeChecker
(
new
PrivateCheck
(
new
EmptyCheck
()),
false
...
...
@@ -49,6 +53,10 @@ class CodeCheckerTest extends TestCase {
* @param string $fileToVerify
*/
public
function
testPassValidUsage
(
$fileToVerify
)
{
if
(
PHP_MAJOR_VERSION
>
7
)
{
$this
->
markTestSkipped
(
'Only run on php7'
);
}
$checker
=
new
CodeChecker
(
new
PrivateCheck
(
new
EmptyCheck
()),
false
...
...
This diff is collapsed.
Click to expand it.
tests/lib/App/CodeChecker/StrongComparisonCheckTest.php
+
4
−
0
View file @
988ce137
...
...
@@ -45,6 +45,10 @@ class StrongComparisonCheckTest extends TestCase {
* @param string $fileToVerify
*/
public
function
testPassValidUsage
(
$fileToVerify
)
{
if
(
PHP_MAJOR_VERSION
>
7
)
{
$this
->
markTestSkipped
(
'Only run on php7'
);
}
$checker
=
new
CodeChecker
(
new
StrongComparisonCheck
(
new
EmptyCheck
()),
false
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment