Skip to content

Commit

Permalink
use short name for DIRECTORY_SEPARATOR
Browse files Browse the repository at this point in the history
  • Loading branch information
easy-system committed Jun 21, 2016
1 parent 2b85018 commit 5248c52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
7 changes: 2 additions & 5 deletions test/TemplateRenderer/ErrorRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ class ErrorRendererTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (PHP_MAJOR_VERSION < 7 && ! class_exists('Error', false)) {
if (! class_exists('Error', false)) {
require_once 'Error.php';
}

$this->filesDir = dirname(__DIR__)
. PHP_DS
. 'files'
. PHP_DS;
$this->filesDir = dirname(__DIR__) . PHP_DS . 'files' . PHP_DS;
}

public function testSetResolver()
Expand Down
10 changes: 4 additions & 6 deletions test/TemplateRenderer/ResolverFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ class ResolverFactoryTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
$this->filesDir = dirname(__DIR__)
. PHP_DS
. 'files'
. PHP_DS;
$this->filesDir = dirname(__DIR__) . PHP_DS . 'files' . PHP_DS;
}

public function testMake()
{
$file = $this->filesDir . 'development.phtml';
$config = new SystemConfig();
$file = $this->filesDir . 'development.phtml';
$config = new SystemConfig();

$config['error'] = [
'html' => [
'templates' => [
Expand Down
5 changes: 1 addition & 4 deletions test/TemplateRenderer/TemplateResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ class TemplateResolverTest extends \PHPUnit_framework_TestCase

public function setUp()
{
$this->filesDir = dirname(__DIR__)
. PHP_DS
. 'files'
. PHP_DS;
$this->filesDir = dirname(__DIR__) . PHP_DS . 'files' . PHP_DS;
}

public function testGetTemplates()
Expand Down

0 comments on commit 5248c52

Please sign in to comment.