aboutsummaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-04 20:11:09 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-05 09:40:42 +0200
commit5b971e8745c6428d9bd7662e1ed2610681c1851e (patch)
tree914269afc3030c0384be6a3ca28345bfcd1d3372 /Test
parent366ccd14d612fdc172e4ad5bae7bf24eb0d25caa (diff)
downloadCompiler-5b971e8745c6428d9bd7662e1ed2610681c1851e.zip
Compiler-5b971e8745c6428d9bd7662e1ed2610681c1851e.tar.gz
Compiler-5b971e8745c6428d9bd7662e1ed2610681c1851e.tar.bz2
Move to PSR-1 and PSR-2.
Diffstat (limited to 'Test')
-rw-r--r--Test/Unit/Documentation.php16
-rw-r--r--Test/Unit/Llk/Llk.php30
-rw-r--r--Test/Unit/Llk/Soundness.php10
3 files changed, 26 insertions, 30 deletions
diff --git a/Test/Unit/Documentation.php b/Test/Unit/Documentation.php
index 0444437..99b31bc 100644
--- a/Test/Unit/Documentation.php
+++ b/Test/Unit/Documentation.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -36,24 +36,22 @@
namespace Hoa\Compiler\Test\Unit;
-use Hoa\Test;
use Hoa\Compiler as LUT;
use Hoa\File;
+use Hoa\Test;
/**
* Class \Hoa\Compiler\Test\Unit\Documentation.
*
* Test suite of the examples in the documentation.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class Documentation extends Test\Unit\Suite {
-
- public function case_whole_process ( ) {
-
+class Documentation extends Test\Unit\Suite
+{
+ public function case_whole_process()
+ {
$_grammar = <<<GRAMMAR
%skip space \s
// Scalars.
diff --git a/Test/Unit/Llk/Llk.php b/Test/Unit/Llk/Llk.php
index 89266ea..64a88ef 100644
--- a/Test/Unit/Llk/Llk.php
+++ b/Test/Unit/Llk/Llk.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -36,24 +36,22 @@
namespace Hoa\Compiler\Test\Unit\Llk;
-use Hoa\Test;
use Hoa\Compiler as LUT;
use Hoa\File;
+use Hoa\Test;
/**
* Class \Hoa\Compiler\Test\Unit\Documentation.
*
* Test suite of the examples in the documentation.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class Llk extends Test\Unit\Suite {
-
- public function case_without_unification ( ) {
-
+class Llk extends Test\Unit\Suite
+{
+ public function case_without_unification()
+ {
$_grammar = <<<GRAMMAR
%token quote '|"
%token string \w+
@@ -89,8 +87,8 @@ GRAMMAR;
->isTrue();
}
- public function case_unification ( ) {
-
+ public function case_unification()
+ {
$_grammar = <<<GRAMMAR
%token quote '|"
%token string \w+
@@ -115,21 +113,21 @@ GRAMMAR;
->boolean($result)
->isTrue()
- ->exception(function ( ) use ( &$compiler ) {
+ ->exception(function () use (&$compiler) {
$compiler->parse('\'foo"', null, false);
})
->isInstanceOf('Hoa\Compiler\Exception\UnexpectedToken')
- ->exception(function ( ) use ( &$compiler ) {
+ ->exception(function () use (&$compiler) {
$compiler->parse('"foo\'', null, false);
})
->isInstanceOf('Hoa\Compiler\Exception\UnexpectedToken');
}
- public function case_unification_palindrome ( ) {
-
+ public function case_unification_palindrome()
+ {
$_grammar = <<<GRAMMAR
%token t \w
@@ -163,7 +161,7 @@ GRAMMAR;
->boolean($result)
->isTrue()
- ->exception(function ( ) use ( &$compiler ) {
+ ->exception(function () use (&$compiler) {
$compiler->parse('abcdcba', null, false);
})
diff --git a/Test/Unit/Llk/Soundness.php b/Test/Unit/Llk/Soundness.php
index b83f1bd..b986364 100644
--- a/Test/Unit/Llk/Soundness.php
+++ b/Test/Unit/Llk/Soundness.php
@@ -8,7 +8,7 @@
*
* New BSD License
*
- * Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
+ * Copyright © 2007-2015, Hoa community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -43,9 +43,9 @@ use Hoa\Json;
*
* Check soundness of the LL(k) compiler.
*
- * @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
- * @copyright Copyright © 2007-2015 Ivan Enderlin.
+ * @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-
-class Soundness extends Json\Test\Unit\Soundness { }
+class Soundness extends Json\Test\Unit\Soundness
+{
+}