fix testCompleteException test

This commit is contained in:
Sergey Kanzhelev 2018-05-14 15:35:53 -07:00
Родитель 80530b9ef0
Коммит a176d15918
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1,7 +1,8 @@
language: php
install: composer install
php:
- "5.4.2"
- "5.4"
- "5.5"
- "5.6"
- "7.0"
- nightly

Просмотреть файл

@ -243,6 +243,7 @@ class Telemetry_Client_Test extends TestCase
foreach ($exception['parsedStack'] as &$stackFrame)
{
$stackFrame['level'] = NULL; # different versions starts array from 0 or from 1
if (array_key_exists('fileName', $stackFrame))
{
if (preg_match('([A-Za-z]+\.php)', $stackFrame['fileName'], $matches) == 1)
@ -252,6 +253,7 @@ class Telemetry_Client_Test extends TestCase
else
{
$stackFrame['fileName'] = NULL;
$stackFrame['line'] = NULL;
}
}
}