Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webbasics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
webbasics
Commits
da46367e
Commit
da46367e
authored
Oct 05, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lowercased namespace
parent
b98089d5
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
27 additions
and
27 deletions
+27
-27
autoloader.php
autoloader.php
+1
-1
base.php
base.php
+1
-1
collection.php
collection.php
+1
-1
logger.php
logger.php
+1
-1
node.php
node.php
+2
-2
router.php
router.php
+1
-1
template.php
template.php
+1
-1
tests/test_autoloader.php
tests/test_autoloader.php
+4
-4
tests/test_base.php
tests/test_base.php
+4
-4
tests/test_collection.php
tests/test_collection.php
+1
-1
tests/test_logger.php
tests/test_logger.php
+1
-1
tests/test_node.php
tests/test_node.php
+1
-1
tests/test_router.php
tests/test_router.php
+1
-1
tests/test_template.php
tests/test_template.php
+7
-7
No files found.
autoloader.php
View file @
da46367e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @date 13-07-2012
* @date 13-07-2012
*/
*/
namespace
WebB
asics
;
namespace
webb
asics
;
require_once
'base.php'
;
require_once
'base.php'
;
...
...
base.php
View file @
da46367e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @date 13-07-2012
* @date 13-07-2012
*/
*/
namespace
WebB
asics
;
namespace
webb
asics
;
require_once
'logger.php'
;
require_once
'logger.php'
;
...
...
collection.php
View file @
da46367e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @date 13-07-2012
* @date 13-07-2012
*/
*/
namespace
WebB
asics
;
namespace
webb
asics
;
require_once
'base.php'
;
require_once
'base.php'
;
...
...
logger.php
View file @
da46367e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @date 13-07-2012
* @date 13-07-2012
*/
*/
namespace
WebB
asics
;
namespace
webb
asics
;
require_once
'base.php'
;
require_once
'base.php'
;
...
...
node.php
View file @
da46367e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @date 13-07-2012
* @date 13-07-2012
*/
*/
namespace
WebB
asics
;
namespace
webb
asics
;
require_once
'base.php'
;
require_once
'base.php'
;
...
@@ -16,7 +16,7 @@ require_once 'base.php';
...
@@ -16,7 +16,7 @@ require_once 'base.php';
* Each tree node has a (non-unique) name, a list of variables, and zero or
* Each tree node has a (non-unique) name, a list of variables, and zero or
* more children.
* more children.
*
*
* @package
WebB
asics
* @package
webb
asics
*/
*/
class
Node
extends
Base
{
class
Node
extends
Base
{
/**
/**
...
...
router.php
View file @
da46367e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* @date 14-07-2012
* @date 14-07-2012
*/
*/
namespace
WebB
asics
;
namespace
webb
asics
;
require_once
'base.php'
;
require_once
'base.php'
;
...
...
template.php
View file @
da46367e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @date 14-07-2012
* @date 14-07-2012
*/
*/
namespace
WebB
asics
;
namespace
webb
asics
;
require_once
'node.php'
;
require_once
'node.php'
;
...
...
tests/test_autoloader.php
View file @
da46367e
<?php
<?php
require_once
'autoloader.php'
;
require_once
'autoloader.php'
;
use
WebB
asics\Autoloader
;
use
webb
asics\Autoloader
;
define
(
'PATH'
,
'tests/_files/'
);
define
(
'PATH'
,
'tests/_files/'
);
...
@@ -38,7 +38,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
...
@@ -38,7 +38,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
* @depends test_set_root_namespace
* @depends test_set_root_namespace
*/
*/
function
test_strip_root_namespace
()
{
function
test_strip_root_namespace
()
{
$strip
=
new
ReflectionMethod
(
'
WebB
asics\Autoloader'
,
'strip_root_namespace'
);
$strip
=
new
ReflectionMethod
(
'
webb
asics\Autoloader'
,
'strip_root_namespace'
);
$strip
->
setAccessible
(
true
);
$strip
->
setAccessible
(
true
);
$this
->
autoloader
->
set_root_namespace
(
'Foo'
);
$this
->
autoloader
->
set_root_namespace
(
'Foo'
);
...
@@ -84,7 +84,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
...
@@ -84,7 +84,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
/**
/**
* @depends test_load_class_not_found
* @depends test_load_class_not_found
* @expectedException
WebB
asics\FileNotFoundError
* @expectedException
webb
asics\FileNotFoundError
* @expectedExceptionMessage File "tests/_files/foobar.php" does not exist.
* @expectedExceptionMessage File "tests/_files/foobar.php" does not exist.
*/
*/
function
test_load_class_not_found_error
()
{
function
test_load_class_not_found_error
()
{
...
@@ -94,7 +94,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
...
@@ -94,7 +94,7 @@ class AutoloaderTest extends PHPUnit_Framework_TestCase {
/**
/**
* @depends test_load_class_not_found
* @depends test_load_class_not_found
* @expectedException
WebB
asics\FileNotFoundError
* @expectedException
webb
asics\FileNotFoundError
* @expectedExceptionMessage File "tests/_files/foobar.php" does not exist.
* @expectedExceptionMessage File "tests/_files/foobar.php" does not exist.
*/
*/
function
test_load_class_not_found_noerror_overwrite
()
{
function
test_load_class_not_found_noerror_overwrite
()
{
...
...
tests/test_base.php
View file @
da46367e
<?php
<?php
require_once
'base.php'
;
require_once
'base.php'
;
use
WebB
asics\Base
;
use
webb
asics\Base
;
class
BaseExtension
extends
Base
{
class
BaseExtension
extends
Base
{
function
__construct
(
$foo
,
$bar
)
{
function
__construct
(
$foo
,
$bar
)
{
...
@@ -16,10 +16,10 @@ class BaseTest extends PHPUnit_Framework_TestCase {
...
@@ -16,10 +16,10 @@ class BaseTest extends PHPUnit_Framework_TestCase {
}
}
function
test_asprintf
()
{
function
test_asprintf
()
{
$this
->
assertEquals
(
WebB
asics\asprintf
(
'%(foo) baz'
,
array
(
'foo'
=>
'bar'
)),
'bar baz'
);
$this
->
assertEquals
(
webb
asics\asprintf
(
'%(foo) baz'
,
array
(
'foo'
=>
'bar'
)),
'bar baz'
);
$this
->
assertEquals
(
WebB
asics\asprintf
(
'%(foo) baz %(foo)'
,
$this
->
assertEquals
(
webb
asics\asprintf
(
'%(foo) baz %(foo)'
,
array
(
'foo'
=>
'bar'
)),
'bar baz bar'
);
array
(
'foo'
=>
'bar'
)),
'bar baz bar'
);
$this
->
assertEquals
(
WebB
asics\asprintf
(
'%(bar) baz %(foo)'
,
$this
->
assertEquals
(
webb
asics\asprintf
(
'%(bar) baz %(foo)'
,
array
(
'foo'
=>
'bar'
,
'bar'
=>
'foobar'
)),
'foobar baz bar'
);
array
(
'foo'
=>
'bar'
,
'bar'
=>
'foobar'
)),
'foobar baz bar'
);
}
}
...
...
tests/test_collection.php
View file @
da46367e
<?php
<?php
require_once
'collection.php'
;
require_once
'collection.php'
;
use
WebB
asics\Collection
;
use
webb
asics\Collection
;
class
IdObject
{
class
IdObject
{
static
$count
=
0
;
static
$count
=
0
;
...
...
tests/test_logger.php
View file @
da46367e
<?php
<?php
require_once
'logger.php'
;
require_once
'logger.php'
;
use
WebB
asics\Logger
;
use
webb
asics\Logger
;
define
(
'NAME'
,
'Testlogger'
);
define
(
'NAME'
,
'Testlogger'
);
define
(
'FORMAT'
,
'%(level): %(message)'
);
define
(
'FORMAT'
,
'%(level): %(message)'
);
...
...
tests/test_node.php
View file @
da46367e
<?php
<?php
require_once
'node.php'
;
require_once
'node.php'
;
use
\
WebB
asics\Node
;
use
\
webb
asics\Node
;
class
NodeTest
extends
PHPUnit_Framework_TestCase
{
class
NodeTest
extends
PHPUnit_Framework_TestCase
{
var
$autoloader
;
var
$autoloader
;
...
...
tests/test_router.php
View file @
da46367e
<?php
<?php
require_once
'router.php'
;
require_once
'router.php'
;
use
WebB
asics\Router
;
use
webb
asics\Router
;
function
test_handler_no_args
()
{
function
test_handler_no_args
()
{
return
true
;
return
true
;
...
...
tests/test_template.php
View file @
da46367e
<?php
<?php
require_once
'template.php'
;
require_once
'template.php'
;
use
WebB
asics\Template
;
use
webb
asics\Template
;
use
WebB
asics\Node
;
use
webb
asics\Node
;
define
(
'TEMPLATES_DIR'
,
'tests/_files/templates/'
);
define
(
'TEMPLATES_DIR'
,
'tests/_files/templates/'
);
define
(
'FOOBAR'
,
'foobar_const'
);
define
(
'FOOBAR'
,
'foobar_const'
);
...
@@ -51,7 +51,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
...
@@ -51,7 +51,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
}
}
/**
/**
* @expectedException
WebB
asics\FileNotFoundError
* @expectedException
webb
asics\FileNotFoundError
* @expectedExceptionMessage Directory "non_existing_folder/" does not exist.
* @expectedExceptionMessage Directory "non_existing_folder/" does not exist.
*/
*/
function
test_add_root_failure
()
{
function
test_add_root_failure
()
{
...
@@ -59,7 +59,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
...
@@ -59,7 +59,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
}
}
function
assert_include_path_equals
(
$expected
)
{
function
assert_include_path_equals
(
$expected
)
{
$include_path
=
new
ReflectionProperty
(
'
WebB
asics\Template'
,
'include_path'
);
$include_path
=
new
ReflectionProperty
(
'
webb
asics\Template'
,
'include_path'
);
$include_path
->
setAccessible
(
true
);
$include_path
->
setAccessible
(
true
);
$this
->
assertEquals
(
$expected
,
$include_path
->
getValue
());
$this
->
assertEquals
(
$expected
,
$include_path
->
getValue
());
}
}
...
@@ -167,7 +167,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
...
@@ -167,7 +167,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
/**
/**
* @depends test_parse_blocks_blocks
* @depends test_parse_blocks_blocks
* @expectedException
WebB
asics\ParseError
* @expectedException
webb
asics\ParseError
* @expectedExceptionMessage Parse error in file tests/_files/templates/unexpected_end.tpl, line 5: unexpected {end}
* @expectedExceptionMessage Parse error in file tests/_files/templates/unexpected_end.tpl, line 5: unexpected {end}
*/
*/
function
test_parse_blocks_unexpected_end
()
{
function
test_parse_blocks_unexpected_end
()
{
...
@@ -176,7 +176,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
...
@@ -176,7 +176,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
/**
/**
* @depends test_parse_blocks_blocks
* @depends test_parse_blocks_blocks
* @expectedException
WebB
asics\ParseError
* @expectedException
webb
asics\ParseError
* @expectedExceptionMessage Parse error in file tests/_files/templates/missing_end.tpl, line 6: missing {end}
* @expectedExceptionMessage Parse error in file tests/_files/templates/missing_end.tpl, line 6: missing {end}
*/
*/
function
test_parse_blocks_missing_end
()
{
function
test_parse_blocks_missing_end
()
{
...
@@ -228,7 +228,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
...
@@ -228,7 +228,7 @@ class TemplateTest extends PHPUnit_Framework_TestCase {
function
evaluate_expression
()
{
function
evaluate_expression
()
{
$args
=
func_get_args
();
$args
=
func_get_args
();
$eval
=
new
ReflectionMethod
(
'
WebB
asics\Template'
,
'evaluate_expression'
);
$eval
=
new
ReflectionMethod
(
'
webb
asics\Template'
,
'evaluate_expression'
);
$eval
->
setAccessible
(
true
);
$eval
->
setAccessible
(
true
);
return
$eval
->
invokeArgs
(
null
,
$args
);
return
$eval
->
invokeArgs
(
null
,
$args
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment