Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
phpunit-hhi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
91 Carriage
phpunit-hhi
Commits
7710e197
Unverified
Commit
7710e197
authored
May 26, 2016
by
Simon Welsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update HHI files to the current state of PHPUnit 5.4
Updates CHANGELOG to match. See #12
parent
bc060e43
Pipeline
#106
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
8 deletions
+56
-8
CHANGELOG.md
CHANGELOG.md
+21
-0
Framework/TestCase.hhi
Framework/TestCase.hhi
+24
-5
Framework/TestResult.hhi
Framework/TestResult.hhi
+11
-3
No files found.
CHANGELOG.md
View file @
7710e197
# Changelog
## 5.4.0
*
Updated to match PHPUnit 5.4
*
Added:
+
`PHPUnit_Framework_TestCase::dataDescription`
+
`PHPUnit_Framework_TestCase::getGroups`
+
`PHPUnit_Framework_TestCase::hasSize`
+
`PHPUnit_Framework_TestCase::isLarge`
+
`PHPUnit_Framework_TestCase::isMedium`
+
`PHPUnit_Framework_TestCase::isSmall`
+
`PHPUnit_Framework_TestCase::setGroups`
+
`PHPUnit_Framework_TestCase::usesDataProvider`
+
`PHPUnit_Framework_TestCase::createMock`
+
`PHPUnit_Framework_TestCase::registerMockObject`
+
`PHPUnit_Framework_TestCase::setRegisterMockObjectsFromTestArgumentsRecursively`
+
`PHPUnit_Framework_TestResult::getTimeoutForLargeTests`
+
`PHPUnit_Framework_TestResult::setRegisterMockObjectsFromTestArgumentsRecursively`
*
Deprecated:
+
`PHPUnit_Framework_TestCase::getMock`
+
`PHPUnit_Framework_TestCase::getMockWithoutInvokingTheOriginalConstructor`
## 5.3.0
*
Updated to match PHPUnit 5.3
...
...
Framework/TestCase.hhi
View file @
7710e197
...
...
@@ -22,6 +22,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
public
function
addToAssertionCount
(
int
$count
)
:
void
;
protected
function
checkRequirements
()
:
void
;
protected
function
createResult
()
:
PHPUnit_Framework_TestResult
;
public
function
dataDescription
()
:
string
;
public
function
expectOutputRegex
(
?
string
$expectedRegex
)
:
void
;
public
function
expectOutputString
(
?
string
$expectedString
)
:
void
;
public
function
getActualOutput
()
:
string
;
...
...
@@ -32,6 +33,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
);
protected
function
getDataSetAsString
(
bool
$includeData
=
true
)
:
string
;
public
function
getExpectedException
()
:
?
string
;
public
function
getGroups
()
:
array
;
public
function
getName
(
bool
$withDataSet
=
true
)
:
string
;
public
function
getNumAssertions
()
:
int
;
public
function
getResult
()
:
mixed
;
...
...
@@ -44,9 +46,13 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
public
function
hasExpectationOnOutput
()
:
bool
;
public
function
hasFailed
()
:
bool
;
public
function
hasOutput
()
:
bool
;
public
function
hasSize
()
:
bool
;
public
function
hasPerformedExpectationsOnOutput
()
:
bool
;
protected
function
iniSet
(
string
$varName
,
string
$newValue
)
:
void
;
public
function
isInIsolation
()
:
bool
;
public
function
isLarge
()
:
bool
;
public
function
isMedium
()
:
bool
;
public
function
isSmall
()
:
bool
;
public
function
run
(
?
PHPUnit_Framework_TestResult
$result
=
null
,
)
:
PHPUnit_Framework_TestResult
;
...
...
@@ -60,7 +66,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
public
function
setDependencyInput
(
array
<
string
,
mixed
>
$dependencyInput
,
)
:
void
;
public
function
set
b
eStrictAboutChangesToGlobalState
(
public
function
set
B
eStrictAboutChangesToGlobalState
(
bool
$beStrictAboutChangeToGlobalState
,
)
:
void
;
public
function
setExpectedException
<
T
>
(
...
...
@@ -78,6 +84,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
public
function
expectExceptionMessage
(
string
$message
)
:
void
;
public
function
expectExceptionMessageRegExp
(
string
$messageRegExp
)
:
void
;
protected
function
setExpectedExceptionFromAnnotation
()
:
void
;
public
function
setGroups
(
array
$groups
)
:
void
;
public
function
setInIsolation
(
bool
$inIsolation
)
:
void
;
protected
function
setLocale
(
int
$category
,
string
$locale
,
...
)
:
void
;
public
function
setName
(
string
$name
)
:
void
;
...
...
@@ -94,6 +101,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
)
:
void
;
public
function
setUseErrorHandler
(
bool
$useErrorHandler
)
:
void
;
protected
function
setUseErrorHandlerFromAnnotation
()
:
void
;
public
function
usesDataProvider
()
:
bool
;
// Lifecycle
protected
function
assertPostConditions
()
:
void
;
...
...
@@ -106,7 +114,11 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
public
static
function
tearDownAfterClass
()
:
void
;
// Mock objects
public
function
getMock
<
T
>
(
protected
function
createMock
<
T
>
(
classname
<
T
>
$originalClassName
,
)
/*: PHPUnit_Framework_MockObject_MockObject*/
;
<<
__Deprecated
(
'Use createMock() or getMockBuilder() instead'
)
>>
protected
function
getMock
<
T
>
(
classname
<
T
>
$originalClassName
,
?
array
$methods
=
array
(),
array
$arguments
=
array
(),
...
...
@@ -130,7 +142,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
bool
$callAutoload
=
true
,
bool
$cloneArguments
=
false
,
)
:
classname
<
Tm
>
;
p
ublic
function
getMockForAbstractClass
<
T
>
(
p
rotected
function
getMockForAbstractClass
<
T
>
(
classname
<
T
>
$originalClassName
,
array
$arguments
=
array
(),
string
$mockClassName
=
''
,
...
...
@@ -140,7 +152,7 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
?
array
$mockedMethods
=
array
(),
bool
$cloneArguments
=
false
,
)
/*: PHPUnit_Framework_MockObject_MockObject*/
;
p
ublic
function
getMockForTrait
<
T
>
(
p
rotected
function
getMockForTrait
<
T
>
(
classname
<
T
>
$traitName
,
array
$arguments
=
array
(),
string
$mockClassName
=
''
,
...
...
@@ -160,7 +172,8 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
)
/*: PHPUnit_Framework_MockObject_MockObject*/
;
protected
function
getMockObjectGenerator
(
)
/*: PHPUnit_Framework_MockObject_Generator*/
;
public
function
getMockWithoutInvokingTheOriginalConstructor
<
T
>
(
<<
__Deprecated
(
'Use createMock() instead'
)
>>
protected
function
getMockWithoutInvokingTheOriginalConstructor
<
T
>
(
classname
<
T
>
$originalClassName
,
)
/*: PHPUnit_Framework_MockObject_MockObject */
;
protected
function
getObjectForTrait
<
T
>
(
...
...
@@ -172,7 +185,13 @@ abstract class PHPUnit_Framework_TestCase extends PHPUnit_Framework_Assert
bool
$callAutoload
=
true
,
bool
$cloneArguments
=
false
,
);
public
function
registerMockObject
(
/*PHPUnit_Framework_MockObject_MockObject*/
$mockObject
,
)
:
void
;
protected
function
verifyMockObjects
()
:
void
;
public
function
setRegisterMockObjectsFromTestArgumentsRecursively
(
bool
$flag
,
)
:
void
;
// Matches
public
static
function
any
(
...
...
Framework/TestResult.hhi
View file @
7710e197
...
...
@@ -19,7 +19,7 @@ class PHPUnit_Framework_TestResult implements Countable {
protected
float
$time
=
0.0
;
protected
?
PHPUnit_Framework_TestSuite
$topTestSuite
;
protected
/*?
PHP_
CodeCoverage*/
$codeCoverage
;
protected
/*?
SebastianBergmann\CodeCoverage\
CodeCoverage*/
$codeCoverage
;
protected
bool
$convertErrorsToExceptions
=
true
;
protected
bool
$stop
=
false
;
...
...
@@ -108,8 +108,11 @@ class PHPUnit_Framework_TestResult implements Countable {
public
function
shouldStop
()
:
bool
;
public
function
stop
()
:
void
;
public
function
getCodeCoverage
()
/*: ?PHP_CodeCoverage */
;
public
function
setCodeCoverage
(
/*PHP_CodeCoverage */
$codeCoverage
)
:
void
;
public
function
getCodeCoverage
(
)
/*: ?SebastianBergmann\CodeCoverage\CodeCoverage */
;
public
function
setCodeCoverage
(
/*SebastianBergmann\CodeCoverage\CodeCoverage */
$codeCoverage
,
)
:
void
;
public
function
convertErrorsToExceptions
(
bool
$flag
)
:
void
;
public
function
getConvertErrorsToExceptions
()
:
bool
;
...
...
@@ -145,8 +148,13 @@ class PHPUnit_Framework_TestResult implements Countable {
public
function
setTimeoutForSmallTests
(
int
$timeout
)
:
void
;
public
function
setTimeoutForMediumTests
(
int
$timeout
)
:
void
;
public
function
getTimeoutForLargeTests
()
:
int
;
public
function
setTimeoutForLargeTests
(
int
$timeout
)
:
void
;
public
function
setRegisterMockObjectsFromTestArgumentsRecursively
(
bool
$flag
,
)
:
void
;
protected
function
getHierarchy
<
T
>
(
classname
<
T
>
$className
,
bool
$asRefelctionObjects
=
false
,
...
...
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