Skip to content

Commit 883d335

Browse files
committed
Move tests into tests folder.
1 parent 46593c1 commit 883d335

File tree

7 files changed

+18
-6
lines changed

7 files changed

+18
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.idea
22
/vendor
33
/composer.lock
4-
/phpunit.phar
4+
/phpunit.phar
5+
/composer.phar

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"require": {
2020
"php": ">=5.3.0"
2121
},
22+
"require-dev": {
23+
"phpunit/phpunit": "^4.7"
24+
},
2225
"autoload": {
2326
"psr-0": {
2427
"Cmfcmf\\": ""

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<testsuites>
77
<testsuite name="cmfcmf/openweathermap-php-api test suite">
8-
<directory suffix="Test.php">.</directory>
8+
<directory suffix="Test.php">./tests</directory>
99
</testsuite>
1010
</testsuites>
1111

Cmfcmf/OpenWeatherMap/Fetcher/CurlFetcherTest.php renamed to tests/Fetcher/CurlFetcherTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
* @see http://openweathermap.org/appid
1717
*/
1818

19-
namespace Cmfcmf\OpenWeatherMap\Fetcher;
19+
namespace Cmfcmf\OpenWeatherMap\Tests\Fetcher;
20+
21+
use \Cmfcmf\OpenWeatherMap\Fetcher\CurlFetcher;
2022

2123
/**
2224
* @requires function curl_version

Cmfcmf/OpenWeatherMap/Fetcher/FileGetContentsFetcherTest.php renamed to tests/Fetcher/FileGetContentsFetcherTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
* @see http://openweathermap.org/appid
1717
*/
1818

19-
namespace Cmfcmf\OpenWeatherMap\Fetcher;
19+
namespace Cmfcmf\OpenWeatherMap\Tests\Fetcher;
20+
21+
use \Cmfcmf\OpenWeatherMap\Fetcher\FileGetContentsFetcher;
2022

2123
class FileGetContentsFetcherTest extends \PHPUnit_Framework_TestCase
2224
{

Cmfcmf/OpenWeatherMap/Util/SunTest.php renamed to tests/Util/SunTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
* information regarding copyright and licensing.
1313
*/
1414

15-
namespace Cmfcmf\OpenWeatherMap\Util;
15+
namespace Cmfcmf\OpenWeatherMap\Tests\Util;
16+
17+
use Cmfcmf\OpenWeatherMap\Util\Sun;
1618

1719
class SunTest extends \PHPUnit_Framework_TestCase
1820
{

Cmfcmf/OpenWeatherMap/Util/UnitTest.php renamed to tests/Util/UnitTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
* information regarding copyright and licensing.
1313
*/
1414

15-
namespace Cmfcmf\OpenWeatherMap\Util;
15+
namespace Cmfcmf\OpenWeatherMap\Tests\Util;
16+
17+
use \Cmfcmf\OpenWeatherMap\Util\Unit;
1618

1719
class UnitTest extends \PHPUnit_Framework_TestCase
1820
{

0 commit comments

Comments
 (0)