Skip to content

Commit 7f051bf

Browse files
committed
tests: renamed .inc to .php
1 parent 562f622 commit 7f051bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+54
-54
lines changed

tests/Routers/Route.arrayParams.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route(' ? arr=<arr>', [

tests/Routers/Route.basic.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>/<action=default>/<id= \d{1,3}>');

tests/Routers/Route.camelcapsVsDash.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>', [

tests/Routers/Route.closure.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$closure = function() {};

tests/Routers/Route.combinedUrlParam.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('extra<presenter>/<action>', [

tests/Routers/Route.extraDefaultParam.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>/<action>/<id \d{1,3}>/', [

tests/Routers/Route.filter.global.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>', [

tests/Routers/Route.filter.query.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route(' ? action=<presenter>', [

tests/Routers/Route.filter.url.object.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use Tester\Assert;
1111

1212
require __DIR__ . '/../bootstrap.php';
1313

14-
require __DIR__ . '/Route.inc';
14+
require __DIR__ . '/Route.php';
1515

1616

1717
$identityMap = [];

tests/Routers/Route.filter.url.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>', [

tests/Routers/Route.filterTable.query.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route(' ? action=<presenter>', [

tests/Routers/Route.filterTable.strict.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>', [

tests/Routers/Route.filterTable.url.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>', [

tests/Routers/Route.firstOptionalParam.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>/<action>/<id \d{1,3}>', [

tests/Routers/Route.fooParameter.default.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('index<?.xml \.html?|\.php|>/', [

tests/Routers/Route.fooParameter.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('index<?.xml>/', [

tests/Routers/Route.fullMatchParam.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<param .+>', [

tests/Routers/Route.longParameter.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<parameter-longer-than-32-characters>', [

tests/Routers/Route.mandatoryAction.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<action>', 'Default:');

tests/Routers/Route.modules.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>', [

tests/Routers/Route.noDefaultParams.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>/<action>/<extra>', [

tests/Routers/Route.noParams.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('index.php', [

tests/Routers/Route.oneWay.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>/<action>', [

tests/Routers/Route.optional.autooptional1.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>/[<action>/[<id \d{1,3}>]]', [

tests/Routers/Route.optional.autooptional2.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>[/<action>[/<id \d{1,3}>]]', [

tests/Routers/Route.optional.module.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('[<module admin|image>/]<presenter>/<action>', [

tests/Routers/Route.optional.nested.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('[<lang [a-z]{2}>[-<sub>]/]<name>[/page-<page>]', [

tests/Routers/Route.optional.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('index[.html]', [

tests/Routers/Route.optional.precedence.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('[<one>/][<two>]', [

tests/Routers/Route.optional.preferred.nested1.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('[!<lang [a-z]{2}>[-<sub>]/]<name>[/page-<page>]', [

tests/Routers/Route.optional.preferred.nested2.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('[<lang [a-z]{2}>[!-<sub>]/]<name>[/page-<page>]', [

tests/Routers/Route.optional.preferred.nested3.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('[!<lang [a-z]{2}>[-<sub>]/]<name>[/page-<page>]', [

tests/Routers/Route.optional.preferred.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('index[!.html]', [

tests/Routers/Route.optional.regexp.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('[<one [a-z]+><two [0-9]+>]', [

tests/Routers/Route.inc tests/Routers/Route.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
function testRouteIn(Nette\Application\IRouter $route, $url, $expectedPresenter = NULL, $expectedParams = NULL, $expectedUrl = NULL)
1111
{
1212
$url = new Nette\Http\UrlScript("http://example.com$url");
13-
$url->appendQuery(array(
13+
$url->appendQuery([
1414
'test' => 'testvalue',
1515
'presenter' => 'querypresenter',
16-
));
16+
]);
1717

1818
$httpRequest = new Nette\Http\Request($url);
1919

@@ -38,7 +38,7 @@ function testRouteIn(Nette\Application\IRouter $route, $url, $expectedPresenter
3838
}
3939

4040

41-
function testRouteOut(Nette\Application\IRouter $route, $presenter, $params = array())
41+
function testRouteOut(Nette\Application\IRouter $route, $presenter, $params = [])
4242
{
4343
$url = new Nette\Http\Url('http://example.com');
4444
$request = new Nette\Application\Request($presenter, 'GET', $params);

tests/Routers/Route.secured.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<param>', [

tests/Routers/Route.slash.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<param>', [

tests/Routers/Route.type.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use Tester\Assert;
1111

1212
require __DIR__ . '/../bootstrap.php';
1313

14-
require __DIR__ . '/Route.inc';
14+
require __DIR__ . '/Route.php';
1515

1616

1717
$route = new Route('<id=5>');

tests/Routers/Route.urlEncoding.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<param .*>', [

tests/Routers/Route.utf8Param.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<param č>', [

tests/Routers/Route.variables.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
testRouteIn(new Route('//<?%domain%>/<path>', 'Default:default'), '/abc', 'Default', [

tests/Routers/Route.withAbsolutePath.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('/<abspath>/', [

tests/Routers/Route.withDefaultPresenterAndAction.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use Tester\Assert;
1010

1111
require __DIR__ . '/../bootstrap.php';
1212

13-
require __DIR__ . '/Route.inc';
13+
require __DIR__ . '/Route.php';
1414

1515

1616
$route = new Route('<presenter>/<action>', [

0 commit comments

Comments
 (0)