Respect PSR-0 with matching folder name and namespace `PhpSpreadsheetTests`

This commit is contained in:
Adrien Crivelli 2016-08-25 13:53:15 +09:00
parent b9ce2b901e
commit 29bdbd4e0b
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
44 changed files with 46 additions and 46 deletions

View File

@ -50,7 +50,7 @@
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
"PhpSpreadsheet\\Tests\\": "tests/PhpSpreadsheet" "PhpSpreadsheetTests\\": "tests/PhpSpreadsheetTests"
} }
} }
} }

View File

@ -8,7 +8,7 @@
<ini name="memory_limit" value="2048M"/> <ini name="memory_limit" value="2048M"/>
</php> </php>
<testsuite name="PhpSpreadsheet Unit Test Suite"> <testsuite name="PhpSpreadsheet Unit Test Suite">
<directory suffix="Test.php">./tests/PhpSpreadsheet</directory> <directory suffix="Test.php">./tests/PhpSpreadsheetTests</directory>
</testsuite> </testsuite>
<filter> <filter>
<whitelist> <whitelist>

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Calculation; namespace PhpSpreadsheetTests\Calculation;
use PhpSpreadsheet\Calculation\DateTime; use PhpSpreadsheet\Calculation\DateTime;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Calculation; namespace PhpSpreadsheetTests\Calculation;
use PhpSpreadsheet\Calculation\Engineering; use PhpSpreadsheet\Calculation\Engineering;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;
@ -8,13 +8,13 @@ use PhpSpreadsheet\Calculation\Functions;
class EngineeringTest extends \PHPUnit_Framework_TestCase class EngineeringTest extends \PHPUnit_Framework_TestCase
{ {
/** /**
* @var \PhpSpreadsheet\Tests\Custom\ComplexAssert * @var \PhpSpreadsheetTests\Custom\ComplexAssert
*/ */
protected $complexAssert; protected $complexAssert;
public function setUp() public function setUp()
{ {
$this->complexAssert = new \PhpSpreadsheet\Tests\Custom\ComplexAssert(); $this->complexAssert = new \PhpSpreadsheetTests\Custom\ComplexAssert();
Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL); Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
} }

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Calculation; namespace PhpSpreadsheetTests\Calculation;
use PhpSpreadsheet\Calculation\Financial; use PhpSpreadsheet\Calculation\Financial;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Calculation; namespace PhpSpreadsheetTests\Calculation;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Calculation; namespace PhpSpreadsheetTests\Calculation;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;
use PhpSpreadsheet\Calculation\Logical; use PhpSpreadsheet\Calculation\Logical;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Calculation; namespace PhpSpreadsheetTests\Calculation;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;
use PhpSpreadsheet\Calculation\LookupRef; use PhpSpreadsheet\Calculation\LookupRef;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Calculation; namespace PhpSpreadsheetTests\Calculation;
use PhpSpreadsheet\Calculation; use PhpSpreadsheet\Calculation;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Calculation; namespace PhpSpreadsheetTests\Calculation;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;
use PhpSpreadsheet\Calculation\TextData; use PhpSpreadsheet\Calculation\TextData;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests; namespace PhpSpreadsheetTests;
use PhpSpreadsheet\Calculation; use PhpSpreadsheet\Calculation;
use PhpSpreadsheet\Calculation\Functions; use PhpSpreadsheet\Calculation\Functions;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Cell; namespace PhpSpreadsheetTests\Cell;
use PhpSpreadsheet\CachedObjectStorage\Memory; use PhpSpreadsheet\CachedObjectStorage\Memory;
use PhpSpreadsheet\Cell; use PhpSpreadsheet\Cell;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Cell; namespace PhpSpreadsheetTests\Cell;
use PhpSpreadsheet\Cell\DataType; use PhpSpreadsheet\Cell\DataType;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Cell; namespace PhpSpreadsheetTests\Cell;
use PhpSpreadsheet\Cell; use PhpSpreadsheet\Cell;
use PhpSpreadsheet\Cell\DataType; use PhpSpreadsheet\Cell\DataType;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Cell; namespace PhpSpreadsheetTests\Cell;
use PhpSpreadsheet\Cell\Hyperlink; use PhpSpreadsheet\Cell\Hyperlink;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests; namespace PhpSpreadsheetTests;
use PhpSpreadsheet\Cell; use PhpSpreadsheet\Cell;
use PhpSpreadsheet\Exception; use PhpSpreadsheet\Exception;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Chart; namespace PhpSpreadsheetTests\Chart;
use PhpSpreadsheet\Chart\DataSeriesValues; use PhpSpreadsheet\Chart\DataSeriesValues;
use PhpSpreadsheet\Exception; use PhpSpreadsheet\Exception;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Chart; namespace PhpSpreadsheetTests\Chart;
use PhpSpreadsheet\Chart\Layout; use PhpSpreadsheet\Chart\Layout;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Chart; namespace PhpSpreadsheetTests\Chart;
use PhpSpreadsheet\Chart\Legend; use PhpSpreadsheet\Chart\Legend;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Custom; namespace PhpSpreadsheetTests\Custom;
use PhpSpreadsheet\Exception; use PhpSpreadsheet\Exception;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Custom; namespace PhpSpreadsheetTests\Custom;
class ComplexAssert class ComplexAssert
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Reader; namespace PhpSpreadsheetTests\Reader;
use PhpSpreadsheet\Reader\BaseReader; use PhpSpreadsheet\Reader\BaseReader;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests; namespace PhpSpreadsheetTests;
use PhpSpreadsheet\ReferenceHelper; use PhpSpreadsheet\ReferenceHelper;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests; namespace PhpSpreadsheetTests;
class SettingsTest extends \PHPUnit_Framework_TestCase class SettingsTest extends \PHPUnit_Framework_TestCase
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Shared; namespace PhpSpreadsheetTests\Shared;
use PhpSpreadsheet\Exception; use PhpSpreadsheet\Exception;
use PhpSpreadsheet\Shared\CodePage; use PhpSpreadsheet\Shared\CodePage;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Shared; namespace PhpSpreadsheetTests\Shared;
use PhpSpreadsheet\Shared\Date; use PhpSpreadsheet\Shared\Date;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Shared; namespace PhpSpreadsheetTests\Shared;
use PhpSpreadsheet\Shared\File; use PhpSpreadsheet\Shared\File;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Shared; namespace PhpSpreadsheetTests\Shared;
use PhpSpreadsheet\Shared\Font; use PhpSpreadsheet\Shared\Font;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Shared; namespace PhpSpreadsheetTests\Shared;
use PhpSpreadsheet\Shared\PasswordHasher; use PhpSpreadsheet\Shared\PasswordHasher;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Shared; namespace PhpSpreadsheetTests\Shared;
use PhpSpreadsheet\Shared\StringHelper; use PhpSpreadsheet\Shared\StringHelper;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Shared; namespace PhpSpreadsheetTests\Shared;
use PhpSpreadsheet\Shared\TimeZone; use PhpSpreadsheet\Shared\TimeZone;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Style; namespace PhpSpreadsheetTests\Style;
use PhpSpreadsheet\Style\Color; use PhpSpreadsheet\Style\Color;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Style; namespace PhpSpreadsheetTests\Style;
use PhpSpreadsheet\Shared\StringHelper; use PhpSpreadsheet\Shared\StringHelper;
use PhpSpreadsheet\Style\NumberFormat; use PhpSpreadsheet\Style\NumberFormat;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Style; namespace PhpSpreadsheetTests\Style;
use PhpSpreadsheet\Shared\StringHelper; use PhpSpreadsheet\Shared\StringHelper;
use PhpSpreadsheet\Style\NumberFormat; use PhpSpreadsheet\Style\NumberFormat;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet\AutoFilter\Column; namespace PhpSpreadsheetTests\Worksheet\AutoFilter\Column;
use PhpSpreadsheet\Worksheet\AutoFilter\Column; use PhpSpreadsheet\Worksheet\AutoFilter\Column;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet\AutoFilter; namespace PhpSpreadsheetTests\Worksheet\AutoFilter;
use PhpSpreadsheet\Worksheet\AutoFilter; use PhpSpreadsheet\Worksheet\AutoFilter;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet; namespace PhpSpreadsheetTests\Worksheet;
use PhpSpreadsheet\CachedObjectStorage\Memory; use PhpSpreadsheet\CachedObjectStorage\Memory;
use PhpSpreadsheet\Worksheet; use PhpSpreadsheet\Worksheet;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet; namespace PhpSpreadsheetTests\Worksheet;
use PhpSpreadsheet\CachedObjectStorageFactory; use PhpSpreadsheet\CachedObjectStorageFactory;
use PhpSpreadsheet\Spreadsheet; use PhpSpreadsheet\Spreadsheet;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet; namespace PhpSpreadsheetTests\Worksheet;
use PhpSpreadsheet\Cell; use PhpSpreadsheet\Cell;
use PhpSpreadsheet\Worksheet; use PhpSpreadsheet\Worksheet;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet; namespace PhpSpreadsheetTests\Worksheet;
use PhpSpreadsheet\Worksheet; use PhpSpreadsheet\Worksheet;
use PhpSpreadsheet\Worksheet\Column; use PhpSpreadsheet\Worksheet\Column;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet; namespace PhpSpreadsheetTests\Worksheet;
use PhpSpreadsheet\Cell; use PhpSpreadsheet\Cell;
use PhpSpreadsheet\Worksheet; use PhpSpreadsheet\Worksheet;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet; namespace PhpSpreadsheetTests\Worksheet;
use PhpSpreadsheet\Worksheet; use PhpSpreadsheet\Worksheet;
use PhpSpreadsheet\Worksheet\Row; use PhpSpreadsheet\Worksheet\Row;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet; namespace PhpSpreadsheetTests\Worksheet;
use PhpSpreadsheet\Worksheet; use PhpSpreadsheet\Worksheet;
use PhpSpreadsheet\Worksheet\Column; use PhpSpreadsheet\Worksheet\Column;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace PhpSpreadsheet\Tests\Worksheet; namespace PhpSpreadsheetTests\Worksheet;
use PhpSpreadsheet\Worksheet; use PhpSpreadsheet\Worksheet;
use PhpSpreadsheet\Worksheet\Row; use PhpSpreadsheet\Worksheet\Row;