Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
27a92e91
Commit
27a92e91
authored
May 05, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: phpunit package name changed with version bump
parent
cde9b8f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile
Makefile
+2
-2
BaseModelTest.php
...ense/mvc/tests/app/models/OPNsense/Base/BaseModelTest.php
+2
-3
Field_Framework_TestCase.php
...els/OPNsense/Base/FieldTypes/Field_Framework_TestCase.php
+3
-3
No files found.
Makefile
View file @
27a92e91
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
all
:
all
:
@
cat
${
.CURDIR
}
/README.md |
${
PAGER
}
@
cat
${
.CURDIR
}
/README.md |
${
PAGER
}
WANTS
=
git pear-PHP_CodeSniffer phpunit
WANTS
=
git pear-PHP_CodeSniffer phpunit
6
.for
WANT
in
${WANTS}
.for
WANT
in
${WANTS}
want-${WANT}
:
force
want-${WANT}
:
force
...
@@ -306,7 +306,7 @@ style: want-pear-PHP_CodeSniffer
...
@@ -306,7 +306,7 @@ style: want-pear-PHP_CodeSniffer
style-fix
:
want-pear-PHP_CodeSniffer
style-fix
:
want-pear-PHP_CodeSniffer
phpcbf
--standard
=
ruleset.xml
${
.CURDIR
}
/src/opnsense
||
true
phpcbf
--standard
=
ruleset.xml
${
.CURDIR
}
/src/opnsense
||
true
test
:
want-phpunit
test
:
want-phpunit
6
@
cd
${
.CURDIR
}
/src/opnsense/mvc/tests
&&
\
@
cd
${
.CURDIR
}
/src/opnsense/mvc/tests
&&
\
phpunit
--configuration
PHPunit.xml
phpunit
--configuration
PHPunit.xml
...
...
src/opnsense/mvc/tests/app/models/OPNsense/Base/BaseModelTest.php
View file @
27a92e91
<?php
<?php
/**
/**
* Copyright (C) 2016 Deciso B.V.
* Copyright (C) 2016 Deciso B.V.
*
* All rights reserved.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*
*/
*/
namespace
tests\OPNsense\Base
;
namespace
tests\OPNsense\Base
;
...
@@ -33,7 +32,7 @@ use \OPNsense\Core\Config;
...
@@ -33,7 +32,7 @@ use \OPNsense\Core\Config;
require_once
'BaseModel/TestModel.php'
;
require_once
'BaseModel/TestModel.php'
;
class
BaseModelTest
extends
\PHPUnit
_Framework_
TestCase
class
BaseModelTest
extends
\PHPUnit
\Framework\
TestCase
{
{
private
static
$model
=
null
;
private
static
$model
=
null
;
...
...
src/opnsense/mvc/tests/app/models/OPNsense/Base/FieldTypes/Field_Framework_TestCase.php
View file @
27a92e91
<?php
<?php
/**
/**
* Copyright (C) 2016 Deciso B.V.
* Copyright (C) 2016 Deciso B.V.
*
* All rights reserved.
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
...
@@ -24,15 +24,15 @@
...
@@ -24,15 +24,15 @@
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*
*/
*/
namespace
tests\OPNsense\Base\FieldTypes
;
namespace
tests\OPNsense\Base\FieldTypes
;
/**
/**
* Class Field_Framework_TestCase
* Class Field_Framework_TestCase
* @package tests\OPNsense\Base\FieldTypes
* @package tests\OPNsense\Base\FieldTypes
*/
*/
class
Field_Framework_TestCase
extends
\PHPUnit
_Framework_
TestCase
class
Field_Framework_TestCase
extends
\PHPUnit
\Framework\
TestCase
{
{
/**
/**
* Validate and throw exception
* Validate and throw exception
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment