Skip to content

Commit

Permalink
Merge pull request #39 from iGusev/fixed_tests_autoload
Browse files Browse the repository at this point in the history
Fixed tests autoload
  • Loading branch information
wapmorgan authored Oct 26, 2018
2 parents d55ee40 + 1d7c450 commit 6cf69ff
Show file tree
Hide file tree
Showing 20 changed files with 15 additions and 43 deletions.
21 changes: 15 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit colors="true" verbose="true">
<testsuites>
<testsuite>
<directory>tests</directory>
</testsuite>
</testsuites>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="false"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite>
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 0 additions & 2 deletions tests/CasesHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test;

require_once __DIR__.'/../vendor/autoload.php';

use morphos\CasesHelper;
use morphos\Cases;

Expand Down
2 changes: 0 additions & 2 deletions tests/CurrenciesHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test;

require_once __DIR__.'/../vendor/autoload.php';

use morphos\CurrenciesHelper;
use morphos\Currency;

Expand Down
2 changes: 0 additions & 2 deletions tests/English/CardinalNumeralTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\English;

require_once __DIR__.'/../../vendor/autoload.php';

use morphos\English\CardinalNumeralGenerator;

class CardinalNumeralTest extends \PHPUnit_Framework_TestCase
Expand Down
2 changes: 0 additions & 2 deletions tests/English/FunctionsTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morphos\test\English;

require __DIR__.'/../../vendor/autoload.php';

use morphos\Gender;
use morphos\NumeralGenerator;

Expand Down
2 changes: 0 additions & 2 deletions tests/English/NounPluralizationTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\English;

require_once __DIR__.'/../../vendor/autoload.php';

use morphos\English\NounPluralization;

class NounPluralizationTest extends \PHPUnit_Framework_TestCase
Expand Down
2 changes: 0 additions & 2 deletions tests/English/OrdinalNumeralTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\English;

require_once __DIR__.'/../../vendor/autoload.php';

use morphos\English\OrdinalNumeralGenerator;

class OrdinalNumeralTest extends \PHPUnit_Framework_TestCase
Expand Down
2 changes: 0 additions & 2 deletions tests/English/TimeSpellerTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morphos\test\English;

require __DIR__.'/../../vendor/autoload.php';

use DateInterval;
use morphos\English\TimeSpeller;

Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/CardinalNumeralTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morphos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use morphos\NumeralGenerator;
use morphos\Russian\Cases;
use morphos\Russian\CardinalNumeralGenerator;
Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/FirstNamesInflecionTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use morphos\Gender;
use morphos\NamesInflection;
use morphos\Russian\Cases;
Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/FunctionsTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morphos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use morphos\Gender;
use morphos\NumeralGenerator;
use morphos\Russian\Cases;
Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/GeographicalNamesInflectionTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\Russian;

require_once __DIR__.'/../../vendor/autoload.php';

use morphos\Russian\Cases;
use morphos\Russian\GeographicalNamesInflection;

Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/LastNamesInflectionTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use morphos\Russian\Cases;
use morphos\Russian\LastNamesInflection;
use morphos\NamesInflection;
Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/MiddleNamesInflectionTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use morphos\Russian\Cases;
use morphos\Russian\MiddleNamesInflection;
use morphos\NamesInflection;
Expand Down
1 change: 0 additions & 1 deletion tests/Russian/MoneySpellerTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace morphos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use morphos\Gender;
use morphos\Currency;
Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/NounDeclensionTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\Russian;

require_once __DIR__.'/../../vendor/autoload.php';

use morphos\Gender;
use morphos\Russian\NounDeclension;

Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/NounPluralizationTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morhos\test\Russian;

require_once __DIR__.'/../../vendor/autoload.php';

use morphos\Russian\NounPluralization;

class NounPluralizationTest extends \PHPUnit_Framework_TestCase
Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/OrdinalNumeralTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morphos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use morphos\NumeralGenerator;
use morphos\Russian\Cases;
use morphos\Russian\OrdinalNumeralGenerator;
Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/RussianLanguageTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morphos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use morphos\Gender;
use morphos\NumeralGenerator;
use morphos\Russian\Cases;
Expand Down
2 changes: 0 additions & 2 deletions tests/Russian/TimeSpellerTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace morphos\test\Russian;

require __DIR__.'/../../vendor/autoload.php';

use DateInterval;
use morphos\Russian\TimeSpeller;

Expand Down

0 comments on commit 6cf69ff

Please sign in to comment.