mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
Refactor & fix coding standard
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Meritoo\Common\Tests\Exception\Base;
|
||||
|
||||
use Meritoo\Common\Exception\Base\UnknownTypeException;
|
||||
use Meritoo\Common\Type\Base\BaseType;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
|
||||
/**
|
||||
* Tests of the exception used while type of something is unknown
|
||||
@@ -17,7 +18,7 @@ use Meritoo\Common\Type\Base\BaseType;
|
||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
||||
* @copyright Meritoo.pl
|
||||
*/
|
||||
class UnknownTypeExceptionTest extends \PHPUnit_Framework_TestCase
|
||||
class UnknownTypeExceptionTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testWithoutException()
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace Meritoo\Common\Tests\Type\Base;
|
||||
|
||||
use Generator;
|
||||
use Meritoo\Common\Type\Base\BaseType;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
|
||||
/**
|
||||
* Tests of the base / abstract type of something
|
||||
@@ -17,7 +18,7 @@ use Meritoo\Common\Type\Base\BaseType;
|
||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
||||
* @copyright Meritoo.pl
|
||||
*/
|
||||
class BaseTypeTest extends \PHPUnit_Framework_TestCase
|
||||
class BaseTypeTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @param BaseType $type Type of something
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace Meritoo\Common\Tests\Type;
|
||||
|
||||
use Generator;
|
||||
use Meritoo\Common\Type\DatePartType;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
|
||||
/**
|
||||
* Tests of the type of date part, e.g. "year"
|
||||
@@ -17,7 +18,7 @@ use Meritoo\Common\Type\DatePartType;
|
||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
||||
* @copyright Meritoo.pl
|
||||
*/
|
||||
class DatePartTypeTest extends \PHPUnit_Framework_TestCase
|
||||
class DatePartTypeTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testGetAll()
|
||||
{
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
namespace Meritoo\Common\Tests\Utilities;
|
||||
|
||||
use Meritoo\Common\Utilities\Arrays;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
|
||||
/**
|
||||
* Tests of the useful arrays methods
|
||||
@@ -16,7 +17,7 @@ use Meritoo\Common\Utilities\Arrays;
|
||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
||||
* @copyright Meritoo.pl
|
||||
*/
|
||||
class ArraysTest extends \PHPUnit_Framework_TestCase
|
||||
class ArraysTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
private $simpleArray;
|
||||
private $simpleArrayWithKeys;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
namespace Meritoo\Common\Tests\Utilities;
|
||||
|
||||
use Meritoo\Common\Utilities\Bundle;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
|
||||
/**
|
||||
* Tests of the useful methods for bundle
|
||||
@@ -16,7 +17,7 @@ use Meritoo\Common\Utilities\Bundle;
|
||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
||||
* @copyright Meritoo.pl
|
||||
*/
|
||||
class BundleTest extends \PHPUnit_Framework_TestCase
|
||||
class BundleTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testGetBundleViewPathEmptyPathAndBundle()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Meritoo\Common\Tests\Utilities;
|
||||
use DateInterval;
|
||||
use DateTime;
|
||||
use Generator;
|
||||
use Meritoo\Common\Exception\Date\IncorrectDatePartException;
|
||||
use Meritoo\Common\Exception\Date\UnknownDatePartTypeException;
|
||||
use Meritoo\Common\Utilities\Date;
|
||||
use Meritoo\Common\Utilities\TestCase;
|
||||
|
||||
@@ -218,7 +218,7 @@ class DateTest extends TestCase
|
||||
*/
|
||||
public function testGetDayOfWeekIncorrectValues($year, $month, $day)
|
||||
{
|
||||
$this->expectException(IncorrectDatePartException::class);
|
||||
$this->expectException(UnknownDatePartTypeException::class);
|
||||
self::assertEmpty(Date::getDayOfWeek($year, $month, $day));
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
namespace Meritoo\Common\Tests\Utilities;
|
||||
|
||||
use Meritoo\Common\Utilities\Xml;
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use SimpleXMLElement;
|
||||
|
||||
/**
|
||||
@@ -17,7 +18,7 @@ use SimpleXMLElement;
|
||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
||||
* @copyright Meritoo.pl
|
||||
*/
|
||||
class XmlTest extends \PHPUnit_Framework_TestCase
|
||||
class XmlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
private $simpleXml;
|
||||
private $advancedXml;
|
||||
|
||||
Reference in New Issue
Block a user