Mercurial > hg > isophonics-drupal-site
comparison vendor/psy/psysh/test/CodeCleaner/LegacyEmptyPassTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 5fb285c0d0e3 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
29 $this->parseAndTraverse($code); | 29 $this->parseAndTraverse($code); |
30 } | 30 } |
31 | 31 |
32 public function invalidStatements() | 32 public function invalidStatements() |
33 { | 33 { |
34 if (version_compare(PHP_VERSION, '5.5', '>=')) { | 34 if (\version_compare(PHP_VERSION, '5.5', '>=')) { |
35 return [ | 35 return [ |
36 ['empty()'], | 36 ['empty()'], |
37 ]; | 37 ]; |
38 } | 38 } |
39 | 39 |
56 $this->assertTrue(true); | 56 $this->assertTrue(true); |
57 } | 57 } |
58 | 58 |
59 public function validStatements() | 59 public function validStatements() |
60 { | 60 { |
61 if (version_compare(PHP_VERSION, '5.5', '<')) { | 61 if (\version_compare(PHP_VERSION, '5.5', '<')) { |
62 return [ | 62 return [ |
63 ['empty($foo)'], | 63 ['empty($foo)'], |
64 ]; | 64 ]; |
65 } | 65 } |
66 | 66 |