mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix end-to-end tests
This commit is contained in:
parent
4a9f35f0a8
commit
06b89aa00a
@ -159,7 +159,8 @@ class PsalmEndToEndTest extends TestCase
|
||||
$result = $this->runPsalm(['--taint-analysis'], self::$tmpDir, true);
|
||||
|
||||
$this->assertStringContainsString('TaintedHtml', $result['STDOUT']);
|
||||
$this->assertStringContainsString('1 errors', $result['STDOUT']);
|
||||
$this->assertStringContainsString('TaintedTextWithQuotes', $result['STDOUT']);
|
||||
$this->assertStringContainsString('2 errors', $result['STDOUT']);
|
||||
$this->assertSame(2, $result['CODE']);
|
||||
}
|
||||
|
||||
@ -168,7 +169,8 @@ class PsalmEndToEndTest extends TestCase
|
||||
$result = $this->runPsalm(['--taint-analysis'], self::$tmpDir, true, false);
|
||||
|
||||
$this->assertStringContainsString('TaintedHtml', $result['STDOUT']);
|
||||
$this->assertStringContainsString('1 errors', $result['STDOUT']);
|
||||
$this->assertStringContainsString('TaintedTextWithQuotes', $result['STDOUT']);
|
||||
$this->assertStringContainsString('2 errors', $result['STDOUT']);
|
||||
$this->assertSame(2, $result['CODE']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user