Skip to content

Commit

Permalink
REPOSITORY CONVERTED TO PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 9, 2012
1 parent 8cfc1a1 commit cbb4de6
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Tester/Assert.php
Expand Up @@ -123,7 +123,7 @@ private static function dump($var)
/**
* Returns message and file and line from call stack.
* @param string
* @return void
* @return void
*/
private static function output($message)
{
Expand Down
4 changes: 2 additions & 2 deletions Tester/NetteTestHelpers.php
Expand Up @@ -244,9 +244,9 @@ public static function prepareSaveCoverage()
*/
public static function saveCoverage()
{
$file = dirname(__FILE__) . '/coverage.tmp';
$file = __DIR__ . '/coverage.tmp';
$coverage = @unserialize(file_get_contents($file));
$root = realpath(dirname(__FILE__) . '/../../Nette') . DIRECTORY_SEPARATOR;
$root = realpath(__DIR__ . '/../../Nette') . DIRECTORY_SEPARATOR;

foreach (xdebug_get_code_coverage() as $filename => $lines) {
if (strncmp($root, $filename, strlen($root))) continue;
Expand Down
6 changes: 3 additions & 3 deletions Tester/RunTests.php
Expand Up @@ -3,7 +3,7 @@
---------------------------
<?php

require_once dirname(__FILE__) . '/NetteTestCase.php';
require_once __DIR__ . '/NetteTestCase.php';



Expand Down Expand Up @@ -31,7 +31,7 @@
* Execute tests
*/
try {
@unlink(dirname(__FILE__) . '/coverage.tmp'); // intentionally @
@unlink(__DIR__ . '/coverage.tmp'); // intentionally @

$manager = new NetteTestRunner;
$manager->parseConfigFile();
Expand Down Expand Up @@ -180,7 +180,7 @@ public function log($testFile, $content, $type, $section = '')
*/
public function parseConfigFile()
{
$configFile = dirname(__FILE__) .'/config.ini';
$configFile = __DIR__ .'/config.ini';
if (file_exists($configFile)) {
$this->config = parse_ini_file($configFile, TRUE);
if ($this->config === FALSE) {
Expand Down
8 changes: 4 additions & 4 deletions Tester/initialize.php
Expand Up @@ -7,19 +7,19 @@
* @package Nette\Test
*/

require dirname(__FILE__) . '/NetteTestCase.php';
require __DIR__ . '/NetteTestCase.php';

require dirname(__FILE__) . '/NetteTestHelpers.php';
require __DIR__ . '/NetteTestHelpers.php';

require dirname(__FILE__) . '/Assert.php';
require __DIR__ . '/Assert.php';



NetteTestHelpers::startup();



require dirname(__FILE__) . '/../../Nette/loader.php';
require __DIR__ . '/../../Nette/loader.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/NetteTestCase.compare().phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/Test.assertations.phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/Test.dump().001.phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/Test.dump().002.phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/Test.dump().003.phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/Test.error.001.phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/Test.error.002.phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/Test.exception.phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down
2 changes: 1 addition & 1 deletion tests/Test.getSection().phpt
Expand Up @@ -9,7 +9,7 @@
* @subpackage UnitTests
*/

require dirname(__FILE__) . '/../initialize.php';
require __DIR__ . '/../initialize.php';



Expand Down

0 comments on commit cbb4de6

Please sign in to comment.