Added
- #5948: Support for Property Hooks in Test Doubles
- #5954: Provide a way to stop execution at a particular deprecation
- Method
assertContainsNotOnlyInstancesOf()
in thePHPUnit\Framework\Assert
class as the inverse of theassertContainsOnlyInstancesOf()
method - Methods
assertContainsOnlyArray()
,assertContainsOnlyBool()
,assertContainsOnlyCallable()
,assertContainsOnlyFloat()
,assertContainsOnlyInt()
,assertContainsOnlyIterable()
,assertContainsOnlyNull()
,assertContainsOnlyNumeric()
,assertContainsOnlyObject()
,assertContainsOnlyResource()
,assertContainsOnlyClosedResource()
,assertContainsOnlyScalar()
, andassertContainsOnlyString()
in thePHPUnit\Framework\Assert
class as specialized alternatives for the genericassertContainsOnly()
method - Methods
assertContainsNotOnlyArray()
,assertContainsNotOnlyBool()
,assertContainsNotOnlyCallable()
,assertContainsNotOnlyFloat()
,assertContainsNotOnlyInt()
,assertContainsNotOnlyIterable()
,assertContainsNotOnlyNull()
,assertContainsNotOnlyNumeric()
,assertContainsNotOnlyObject()
,assertContainsNotOnlyResource()
,assertContainsNotOnlyClosedResource()
,assertContainsNotOnlyScalar()
, andassertContainsNotOnlyString()
in thePHPUnit\Framework\Assert
class as specialized alternatives for the genericassertNotContainsOnly()
method - Methods
containsOnlyArray()
,containsOnlyBool()
,containsOnlyCallable()
,containsOnlyFloat()
,containsOnlyInt()
,containsOnlyIterable()
,containsOnlyNull()
,containsOnlyNumeric()
,containsOnlyObject()
,containsOnlyResource()
,containsOnlyClosedResource()
,containsOnlyScalar()
, andcontainsOnlyString()
in thePHPUnit\Framework\Assert
class as specialized alternatives for the genericcontainsOnly()
method - Methods
isArray()
,isBool()
,isCallable()
,isFloat()
,isInt()
,isIterable()
,isNumeric()
,isObject()
,isResource()
,isClosedResource()
,isScalar()
,isString()
in thePHPUnit\Framework\Assert
class as specialized alternatives for the genericisType()
method TestRunner\ChildProcessStarted
andTestRunner\ChildProcessFinished
events
Changed
- #5998: Do not run
SKIPIF
section of PHPT test in separate process when it is free of side effects - #5999: Do not run
CLEAN
section of PHPT test in separate process when it is free of side effects that modify the parent process
Deprecated
- #6052:
isType()
(useisArray()
,isBool()
,isCallable()
,isFloat()
,isInt()
,isIterable()
,isNull()
,isNumeric()
,isObject()
,isResource()
,isClosedResource()
,isScalar()
, orisString()
instead) - #6055:
assertContainsOnly()
(useassertContainsOnlyArray()
,assertContainsOnlyBool()
,assertContainsOnlyCallable()
,assertContainsOnlyFloat()
,assertContainsOnlyInt()
,assertContainsOnlyIterable()
,assertContainsOnlyNumeric()
,assertContainsOnlyObject()
,assertContainsOnlyResource()
,assertContainsOnlyClosedResource()
,assertContainsOnlyScalar()
, orassertContainsOnlyString()
instead) - #6055:
assertNotContainsOnly()
(useassertContainsNotOnlyArray()
,assertContainsNotOnlyBool()
,assertContainsNotOnlyCallable()
,assertContainsNotOnlyFloat()
,assertContainsNotOnlyInt()
,assertContainsNotOnlyIterable()
,assertContainsNotOnlyNumeric()
,assertContainsNotOnlyObject()
,assertContainsNotOnlyResource()
,assertContainsNotOnlyClosedResource()
,assertContainsNotOnlyScalar()
, orassertContainsNotOnlyString()
instead) - #6059:
containsOnly()
(usecontainsOnlyArray()
,containsOnlyBool()
,containsOnlyCallable()
,containsOnlyFloat()
,containsOnlyInt()
,containsOnlyIterable()
,containsOnlyNumeric()
,containsOnlyObject()
,containsOnlyResource()
,containsOnlyClosedResource()
,containsOnlyScalar()
, orcontainsOnlyString()
instead)