summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Components/ComponentTest.php (renamed from tests/Components/FragmentTest.php)2
-rw-r--r--tests/bootstrap.php23
2 files changed, 10 insertions, 15 deletions
diff --git a/tests/Components/FragmentTest.php b/tests/Components/ComponentTest.php
index f8b27fa..b2388a3 100644
--- a/tests/Components/FragmentTest.php
+++ b/tests/Components/ComponentTest.php
@@ -14,6 +14,8 @@ class ComponentTest extends TestCase
/**
* @expectedException \Exception
* @expectedExceptionMessage Not implemented yet.
+ * @runInSeparateProcess
+ * @preserveGlobalState disabled
*/
public function testParse()
{
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 98ffcc6..ebf1ee7 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -1,25 +1,18 @@
<?php
-namespace SqlParser\Tests;
+/**
+ * Bootstrap for tests.
+ *
+ * @package SqlParser
+ * @subpackage Tests
+ */
-require_once 'vendor/autoload.php';
+namespace SqlParser\Tests;
use SqlParser\Lexer;
use SqlParser\Parser;
-/**
- * Dummy function used to test if errors are translated.
- *
- * It only translates "TO_TRANSLATE" to "***".
- *
- * @param string $msg The message to be translated.
- *
- * @return string
- */
-function __($msg)
-{
- return str_replace('TO_TRANSLATE', '***', $msg);
-}
+require_once 'vendor/autoload.php';
/**
* Implements useful methods for testing.