1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add some tests

This commit is contained in:
ralila 2021-11-15 03:09:37 +01:00
parent 0d0a06e78f
commit 2e1b7b4c70

View File

@ -17,6 +17,20 @@ class TraceTest extends TestCase
$a = getmypid();',
'error_message' => 'Trace',
],
'traceVariables' => [
'<?php
/** @psalm-trace $a $b */
$a = getmypid();
$b = getmypid();',
'error_message' => 'Trace',
],
'traceVariablesComma' => [
'<?php
/** @psalm-trace $a, $b */
$a = getmypid();
$b = getmypid();',
'error_message' => 'Trace',
],
'undefinedTraceVariable' => [
'<?php
/** @psalm-trace $b */