Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
PhpUnitTestRunner example
'function' => 'SomeTest',
'line' => '0',
'file' =>
$log_path
,
]
;
$this
->
assertEquals
(
$fail_row
,
$row
)
;
}
/** * @covers ::phpUnitCommand */
public
function
testPhpUnitCommand
(
)
{
$runner
=
new
PhpUnitTestRunner
(
$this
->root,
sys_get_temp_dir
(
)
)
;
$this
->
assertMatchesRegularExpression
(
'/phpunit/',
$runner
->
phpUnitCommand
(
)
)
;
}
/** * @covers ::xmlLogFilePath */
public
function
testXmlLogFilePath
(
)
{
$runner
=
new
PhpUnitTestRunner
(
$this
->root,
sys_get_temp_dir
(
)
)
;
$this
->
assertStringEndsWith
(
'phpunit-23.xml',
$runner
->
xmlLogFilePath
(
23
)
)
;
}