Cleanup in tests/: adding namespaces, removing php closing tag and general code cleanup

This commit is contained in:
Alexander Liljengård
2016-05-24 13:59:35 +02:00
parent 4ab0c5d719
commit 983c6dc487
11 changed files with 115 additions and 213 deletions

View File

@ -1,12 +1,6 @@
<?php
namespace Moserware\Skills;
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once(dirname(__FILE__) . '/../Skills/RankSorter.php');
<?php namespace Moserware\Skills\Tests;
use Moserware\Skills\RankSorter;
use \PHPUnit_Framework_TestCase;
class RankSorterTest extends PHPUnit_Framework_TestCase
@ -28,6 +22,4 @@ class RankSorterTest extends PHPUnit_Framework_TestCase
$this->assertEquals($team1, $sortedRanks[2]);
}
}
?>
}