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:
parent
0d0a06e78f
commit
2e1b7b4c70
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user