PHPUnit_Framework_TestCase::getObjectForTrait
Returns an object for the specified trait.
Signature
protected function getObjectForTrait(string
$traitName,
[array
$arguments = '',
[string
$traitClassName = '',
[boolean
$callOriginalConstructor = true,
[boolean
$callOriginalClone = true,
[boolean
$callAutoload = true,
[boolean
$cloneArguments = false]]]]]] )
Parameters
$traitName
—
string
$arguments
—
array
$traitClassName
—
string
$callOriginalConstructor
—
boolean
$callOriginalClone
—
boolean
$callAutoload
—
boolean
$cloneArguments
—
boolean
Returns
Errors/Exceptions
-
PHPUnit_Framework_Exception
Violations
Checkstyle
Line |
Column |
Severity |
Message |
1448 |
210 |
warning
|
Line exceeds 120 characters; contains 209 characters |