mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Update @author and @copyright in classes' descriptions
This commit is contained in:
@@ -5,6 +5,7 @@ Common and useful classes, methods, exceptions etc.
|
|||||||
|
|
||||||
1. Composer > require ext-pcre
|
1. Composer > require ext-pcre
|
||||||
2. Arrays > minor refactoring
|
2. Arrays > minor refactoring
|
||||||
|
3. Update @author and @copyright in classes' descriptions
|
||||||
|
|
||||||
# 0.0.20
|
# 0.0.20
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
Conditional running of tests.
|
Conditional running of tests.
|
||||||
Disabled, because not required.
|
Disabled, because not required.
|
||||||
|
|
||||||
Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
Meritoo <github@meritoo.pl>
|
||||||
2017-02-22
|
2017-02-22
|
||||||
|
|
||||||
<if>
|
<if>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ assets.installWithSymlink = true
|
|||||||
# The cache:clear command should always be called with the --no-warmup option. Warmup should be done via the cache:warmup command.
|
# The cache:clear command should always be called with the --no-warmup option. Warmup should be done via the cache:warmup command.
|
||||||
# https://github.com/symfony/symfony/blob/master/UPGRADE-3.3.md#frameworkbundle
|
# https://github.com/symfony/symfony/blob/master/UPGRADE-3.3.md#frameworkbundle
|
||||||
#
|
#
|
||||||
# Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
# Meritoo <github@meritoo.pl>
|
||||||
# 2017-06-06
|
# 2017-06-06
|
||||||
#
|
#
|
||||||
cache.clearWithWarmup = false
|
cache.clearWithWarmup = false
|
||||||
@@ -81,7 +81,7 @@ dir.reports.coverage = ${dir.reports}/phpunit_coverage
|
|||||||
# Disabled, because unnecessary right now
|
# Disabled, because unnecessary right now
|
||||||
# phpdocumentor/phpdocumentor cannot be installed via Composer
|
# phpdocumentor/phpdocumentor cannot be installed via Composer
|
||||||
#
|
#
|
||||||
# Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
# Meritoo <github@meritoo.pl>
|
||||||
# 2017-02-22
|
# 2017-02-22
|
||||||
#
|
#
|
||||||
#dir.docs = ${dir.build}/docs
|
#dir.docs = ${dir.build}/docs
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
The AutoloaderTask is required to load binaries installed by Composer.
|
The AutoloaderTask is required to load binaries installed by Composer.
|
||||||
The "autoloaderpath" attribute of this task is not required, because it's default value is: vendor/autoload.php.
|
The "autoloaderpath" attribute of this task is not required, because it's default value is: vendor/autoload.php.
|
||||||
|
|
||||||
Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
Meritoo <github@meritoo.pl>
|
||||||
2017-02-23
|
2017-02-23
|
||||||
-->
|
-->
|
||||||
<autoloader />
|
<autoloader />
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
a) phpdocumentor/phpdocumentor v2.9.0 requires symfony/validator ~2.2
|
a) phpdocumentor/phpdocumentor v2.9.0 requires symfony/validator ~2.2
|
||||||
b) symfony/validator ~2.2 causes to remove symfony/symfony 3.*
|
b) symfony/validator ~2.2 causes to remove symfony/symfony 3.*
|
||||||
|
|
||||||
Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
Meritoo <github@meritoo.pl>
|
||||||
2017-02-22
|
2017-02-22
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
a) phpdocumentor/phpdocumentor v2.9.0 requires symfony/validator ~2.2
|
a) phpdocumentor/phpdocumentor v2.9.0 requires symfony/validator ~2.2
|
||||||
b) symfony/validator ~2.2 causes to remove symfony/symfony 3.*
|
b) symfony/validator ~2.2 causes to remove symfony/symfony 3.*
|
||||||
|
|
||||||
Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
Meritoo <github@meritoo.pl>
|
||||||
2017-02-22
|
2017-02-22
|
||||||
-->
|
-->
|
||||||
<!--<target name="build:doc"-->
|
<!--<target name="build:doc"-->
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
a) phpdocumentor/phpdocumentor v2.9.0 requires symfony/validator ~2.2
|
a) phpdocumentor/phpdocumentor v2.9.0 requires symfony/validator ~2.2
|
||||||
b) symfony/validator ~2.2 causes to remove symfony/symfony 3.*
|
b) symfony/validator ~2.2 causes to remove symfony/symfony 3.*
|
||||||
|
|
||||||
Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
Meritoo <github@meritoo.pl>
|
||||||
2017-02-22
|
2017-02-22
|
||||||
|
|
||||||
<target name="doc:phpdoc2" description="Generates API documentations">
|
<target name="doc:phpdoc2" description="Generates API documentations">
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
via Composer the Symfony2 standard is not included / available in this package. In this case the PHP Coding
|
via Composer the Symfony2 standard is not included / available in this package. In this case the PHP Coding
|
||||||
Standards Fixer (http://cs.sensiolabs.org) is used.
|
Standards Fixer (http://cs.sensiolabs.org) is used.
|
||||||
|
|
||||||
Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
Meritoo <github@meritoo.pl>
|
||||||
2017-02-22
|
2017-02-22
|
||||||
-->
|
-->
|
||||||
<target name="check:cs" description="Checks coding standard">
|
<target name="check:cs" description="Checks coding standard">
|
||||||
@@ -166,7 +166,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Previous / old version
|
Previous / old version
|
||||||
|
|
||||||
Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
Meritoo <github@meritoo.pl>
|
||||||
2017-02-22
|
2017-02-22
|
||||||
|
|
||||||
<exec command="phpcpd \-\-log-pmd=${dir.reports}/pmd-cpd.xml ${dir.src}" />
|
<exec command="phpcpd \-\-log-pmd=${dir.reports}/pmd-cpd.xml ${dir.src}" />
|
||||||
@@ -204,7 +204,7 @@
|
|||||||
<!--
|
<!--
|
||||||
Previous / old version
|
Previous / old version
|
||||||
|
|
||||||
Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
Meritoo <github@meritoo.pl>
|
||||||
2017-02-22
|
2017-02-22
|
||||||
|
|
||||||
<exec command="phploc \-\-log-csv=${dir.reports}/phploc.csv ${dir.src}" />
|
<exec command="phploc \-\-log-csv=${dir.reports}/phploc.csv ${dir.src}" />
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ use Meritoo\Common\Utilities\Arrays;
|
|||||||
* Collection of elements.
|
* Collection of elements.
|
||||||
* It's a set of some elements, e.g. objects.
|
* It's a set of some elements, e.g. objects.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Collection implements Countable, ArrayAccess, IteratorAggregate
|
class Collection implements Countable, ArrayAccess, IteratorAggregate
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ use Meritoo\Common\Utilities\Arrays;
|
|||||||
/**
|
/**
|
||||||
* An exception used while type of something is unknown
|
* An exception used while type of something is unknown
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
abstract class UnknownTypeException extends Exception
|
abstract class UnknownTypeException extends Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ use Exception;
|
|||||||
/**
|
/**
|
||||||
* An exception used while name of bundle is incorrect
|
* An exception used while name of bundle is incorrect
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class IncorrectBundleNameException extends Exception
|
class IncorrectBundleNameException extends Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Type\DatePartType;
|
|||||||
/**
|
/**
|
||||||
* An exception used while type of date part, e.g. "year", is unknown
|
* An exception used while type of date part, e.g. "year", is unknown
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class UnknownDatePartTypeException extends UnknownTypeException
|
class UnknownDatePartTypeException extends UnknownTypeException
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Exception\File;
|
|||||||
/**
|
/**
|
||||||
* An exception used while file with given path is empty (has no content)
|
* An exception used while file with given path is empty (has no content)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class EmptyFileException extends \Exception
|
class EmptyFileException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Exception\File;
|
|||||||
/**
|
/**
|
||||||
* An exception used while path of given file is empty
|
* An exception used while path of given file is empty
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class EmptyFilePathException extends \Exception
|
class EmptyFilePathException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Exception\File;
|
|||||||
/**
|
/**
|
||||||
* An exception used while file with given path does not exist
|
* An exception used while file with given path does not exist
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class NotExistingFileException extends \Exception
|
class NotExistingFileException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ use Exception;
|
|||||||
/**
|
/**
|
||||||
* An exception used while method cannot be called, because is disabled
|
* An exception used while method cannot be called, because is disabled
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class DisabledMethodException extends Exception
|
class DisabledMethodException extends Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ use Exception;
|
|||||||
/**
|
/**
|
||||||
* An exception used while name of class or trait cannot be resolved
|
* An exception used while name of class or trait cannot be resolved
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class CannotResolveClassNameException extends Exception
|
class CannotResolveClassNameException extends Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Utilities\Reflection;
|
|||||||
/**
|
/**
|
||||||
* An exception used while given class has no child classes
|
* An exception used while given class has no child classes
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class MissingChildClassesException extends Exception
|
class MissingChildClassesException extends Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Utilities\Reflection;
|
|||||||
/**
|
/**
|
||||||
* An exception used while given class has more than one child class
|
* An exception used while given class has more than one child class
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class TooManyChildClassesException extends Exception
|
class TooManyChildClassesException extends Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Exception\Regex;
|
|||||||
/**
|
/**
|
||||||
* An exception used while length of given hexadecimal value of color is incorrect
|
* An exception used while length of given hexadecimal value of color is incorrect
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class IncorrectColorHexLengthException extends \Exception
|
class IncorrectColorHexLengthException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Exception\Regex;
|
|||||||
/**
|
/**
|
||||||
* An exception used while given hexadecimal value of color is invalid
|
* An exception used while given hexadecimal value of color is invalid
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class InvalidColorHexValueException extends \Exception
|
class InvalidColorHexValueException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Exception\Regex;
|
|||||||
/**
|
/**
|
||||||
* An exception used while html attributes are invalid
|
* An exception used while html attributes are invalid
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class InvalidHtmlAttributesException extends \Exception
|
class InvalidHtmlAttributesException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ namespace Meritoo\Common\Exception\Regex;
|
|||||||
/**
|
/**
|
||||||
* An exception used while url is invalid
|
* An exception used while url is invalid
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class InvalidUrlException extends \Exception
|
class InvalidUrlException extends \Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* An exception used while the visibility of a property, a method or (as of PHP 7.1.0) a constant is unknown
|
* An exception used while the visibility of a property, a method or (as of PHP 7.1.0) a constant is unknown
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class UnknownOopVisibilityTypeException extends UnknownTypeException
|
class UnknownOopVisibilityTypeException extends UnknownTypeException
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use PHPUnit\Framework\TestCase;
|
|||||||
/**
|
/**
|
||||||
* Base test case with common methods and data providers
|
* Base test case with common methods and data providers
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
abstract class BaseTestCase extends TestCase
|
abstract class BaseTestCase extends TestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ use Meritoo\Common\Traits\Test\Base\BaseTypeTestCaseTrait;
|
|||||||
/**
|
/**
|
||||||
* Base test case for the type of something
|
* Base test case for the type of something
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
abstract class BaseTypeTestCase extends BaseTestCase
|
abstract class BaseTypeTestCase extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ use stdClass;
|
|||||||
* BaseTestCaseTrait
|
* BaseTestCaseTrait
|
||||||
* Created on 2017-11-02
|
* Created on 2017-11-02
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
trait BaseTestCaseTrait
|
trait BaseTestCaseTrait
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Type\Base\BaseType;
|
|||||||
/**
|
/**
|
||||||
* Trait for the base test case for the type of something
|
* Trait for the base test case for the type of something
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
trait BaseTypeTestCaseTrait
|
trait BaseTypeTestCaseTrait
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Utilities\Reflection;
|
|||||||
* Base / abstract type of something, e.g. type of button, order, date etc.
|
* Base / abstract type of something, e.g. type of button, order, date etc.
|
||||||
* Child class should contain constants - each of them represent one type.
|
* Child class should contain constants - each of them represent one type.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
abstract class BaseType
|
abstract class BaseType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ use Meritoo\Common\Type\Base\BaseType;
|
|||||||
/**
|
/**
|
||||||
* Type of date part, e.g. "year"
|
* Type of date part, e.g. "year"
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class DatePartType extends BaseType
|
class DatePartType extends BaseType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Utilities\Date;
|
|||||||
* A date's period.
|
* A date's period.
|
||||||
* Contains start and end date of the period.
|
* Contains start and end date of the period.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class DatePeriod extends BaseType
|
class DatePeriod extends BaseType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ use Meritoo\Common\Type\Base\BaseType;
|
|||||||
/**
|
/**
|
||||||
* The visibility of a property, a method or (as of PHP 7.1.0) a constant
|
* The visibility of a property, a method or (as of PHP 7.1.0) a constant
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*
|
*
|
||||||
* @see http://php.net/manual/en/language.oop5.visibility.php
|
* @see http://php.net/manual/en/language.oop5.visibility.php
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Utilities;
|
|||||||
/**
|
/**
|
||||||
* Useful arrays methods
|
* Useful arrays methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Arrays
|
class Arrays
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ use Meritoo\Common\Exception\Bundle\IncorrectBundleNameException;
|
|||||||
/**
|
/**
|
||||||
* Useful methods for bundle
|
* Useful methods for bundle
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Bundle
|
class Bundle
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ use stdClass;
|
|||||||
/**
|
/**
|
||||||
* Useful Composer-related methods (only static functions)
|
* Useful Composer-related methods (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Composer
|
class Composer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ use Meritoo\Common\Type\DatePeriod;
|
|||||||
/**
|
/**
|
||||||
* Useful date methods
|
* Useful date methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Date
|
class Date
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ use Generator;
|
|||||||
/**
|
/**
|
||||||
* Useful methods for the Generator class (only static functions)
|
* Useful methods for the Generator class (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class GeneratorUtility
|
class GeneratorUtility
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Utilities;
|
|||||||
/**
|
/**
|
||||||
* Useful locale methods
|
* Useful locale methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Locale
|
class Locale
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Utilities;
|
|||||||
/**
|
/**
|
||||||
* Useful methods for mime types of files
|
* Useful methods for mime types of files
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class MimeTypes
|
class MimeTypes
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Transliterator;
|
|||||||
/**
|
/**
|
||||||
* Miscellaneous methods (only static functions)
|
* Miscellaneous methods (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Miscellaneous
|
class Miscellaneous
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ use Doctrine\ORM\QueryBuilder;
|
|||||||
/**
|
/**
|
||||||
* Useful methods for query builder (the Doctrine's QueryBuilder class)
|
* Useful methods for query builder (the Doctrine's QueryBuilder class)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class QueryBuilderUtility
|
class QueryBuilderUtility
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ use ReflectionProperty;
|
|||||||
/**
|
/**
|
||||||
* Useful reflection methods
|
* Useful reflection methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Reflection
|
class Reflection
|
||||||
{
|
{
|
||||||
@@ -206,7 +206,7 @@ class Reflection
|
|||||||
* while using "project.name" as property - $project has $name property ($project exists in the Deal class)
|
* while using "project.name" as property - $project has $name property ($project exists in the Deal class)
|
||||||
* and the $project equals null
|
* and the $project equals null
|
||||||
*
|
*
|
||||||
* Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* Meritoo <github@meritoo.pl>
|
||||||
* 2016-11-07
|
* 2016-11-07
|
||||||
*/
|
*/
|
||||||
if (null !== $object) {
|
if (null !== $object) {
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Exception\Regex\InvalidColorHexValueException;
|
|||||||
/**
|
/**
|
||||||
* Useful regular expressions methods
|
* Useful regular expressions methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Regex
|
class Regex
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Doctrine\ORM\QueryBuilder;
|
|||||||
/**
|
/**
|
||||||
* Useful methods for repository
|
* Useful methods for repository
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Repository
|
class Repository
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ namespace Meritoo\Common\Utilities;
|
|||||||
/**
|
/**
|
||||||
* Useful uri methods (only static functions)
|
* Useful uri methods (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Uri
|
class Uri
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ use SimpleXMLElement;
|
|||||||
/**
|
/**
|
||||||
* Useful XML-related methods (only static functions)
|
* Useful XML-related methods (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Xml
|
class Xml
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of the collection of elements
|
* Test case of the collection of elements
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class CollectionTest extends BaseTestCase
|
class CollectionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of the exception used while type of something is unknown
|
* Test case of the exception used while type of something is unknown
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class UnknownTypeExceptionTest extends BaseTestCase
|
class UnknownTypeExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
@@ -41,8 +41,8 @@ class UnknownTypeExceptionTest extends BaseTestCase
|
|||||||
/**
|
/**
|
||||||
* Type of something (for testing purposes)
|
* Type of something (for testing purposes)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class TestType extends BaseType
|
class TestType extends BaseType
|
||||||
{
|
{
|
||||||
@@ -54,8 +54,8 @@ class TestType extends BaseType
|
|||||||
/**
|
/**
|
||||||
* An exception used while type of something is unknown (for testing purposes)
|
* An exception used while type of something is unknown (for testing purposes)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class UnknownTestTypeException extends UnknownTypeException
|
class UnknownTestTypeException extends UnknownTypeException
|
||||||
{
|
{
|
||||||
@@ -73,8 +73,8 @@ class UnknownTestTypeException extends UnknownTypeException
|
|||||||
/**
|
/**
|
||||||
* Service used together with type of something (for testing purposes)
|
* Service used together with type of something (for testing purposes)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class TestService
|
class TestService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while type of date part, e.g. "year", is unknown
|
* Test case of an exception used while type of date part, e.g. "year", is unknown
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class UnknownDatePartTypeExceptionTest extends BaseTestCase
|
class UnknownDatePartTypeExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while file with given path is empty (has no content)
|
* Test case of an exception used while file with given path is empty (has no content)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class EmptyFileExceptionTest extends BaseTestCase
|
class EmptyFileExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while path of given file is empty
|
* Test case of an exception used while path of given file is empty
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class EmptyFilePathExceptionTest extends BaseTestCase
|
class EmptyFilePathExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while file with given path does not exist
|
* Test case of an exception used while file with given path does not exist
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class NotExistingFileExceptionTest extends BaseTestCase
|
class NotExistingFileExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while method cannot be called, because is disabled
|
* Test case of an exception used while method cannot be called, because is disabled
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class DisabledMethodExceptionTest extends BaseTestCase
|
class DisabledMethodExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while name of class or trait cannot be resolved
|
* Test case of an exception used while name of class or trait cannot be resolved
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class CannotResolveClassNameExceptionTest extends BaseTestCase
|
class CannotResolveClassNameExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while given class has no child classes
|
* Test case of an exception used while given class has no child classes
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class MissingChildClassesExceptionTest extends BaseTestCase
|
class MissingChildClassesExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while given class has more than one child class
|
* Test case of an exception used while given class has more than one child class
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class TooManyChildClassesExceptionTest extends BaseTestCase
|
class TooManyChildClassesExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while length of given hexadecimal value of color is incorrect
|
* Test case of an exception used while length of given hexadecimal value of color is incorrect
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class IncorrectColorHexLengthExceptionTest extends BaseTestCase
|
class IncorrectColorHexLengthExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while given hexadecimal value of color is invalid
|
* Test case of an exception used while given hexadecimal value of color is invalid
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class InvalidColorHexValueExceptionTest extends BaseTestCase
|
class InvalidColorHexValueExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while html attributes are invalid
|
* Test case of an exception used while html attributes are invalid
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class InvalidHtmlAttributesExceptionTest extends BaseTestCase
|
class InvalidHtmlAttributesExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of an exception used while url is invalid
|
* Test case of an exception used while url is invalid
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class InvalidUrlExceptionTest extends BaseTestCase
|
class InvalidUrlExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
* Test case of an exception used while the visibility of a property, a method or (as of PHP 7.1.0) a constant is
|
* Test case of an exception used while the visibility of a property, a method or (as of PHP 7.1.0) a constant is
|
||||||
* unknown
|
* unknown
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class UnknownOopVisibilityTypeExceptionTest extends BaseTestCase
|
class UnknownOopVisibilityTypeExceptionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use Meritoo\Common\Utilities\GeneratorUtility;
|
|||||||
/**
|
/**
|
||||||
* Test case of the base test case with common methods and data providers
|
* Test case of the base test case with common methods and data providers
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class BaseTestCaseTest extends BaseTestCase
|
class BaseTestCaseTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
@@ -168,8 +168,8 @@ class BaseTestCaseTest extends BaseTestCase
|
|||||||
/**
|
/**
|
||||||
* Simple test case
|
* Simple test case
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class SimpleTestCase extends BaseTestCase
|
class SimpleTestCase extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ use Meritoo\Common\Type\Base\BaseType;
|
|||||||
/**
|
/**
|
||||||
* Test case of the base / abstract type of something
|
* Test case of the base / abstract type of something
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class BaseTypeTest extends BaseTestCase
|
class BaseTypeTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
@@ -184,8 +184,8 @@ class BaseTypeTest extends BaseTestCase
|
|||||||
/**
|
/**
|
||||||
* Empty type of something used for testing
|
* Empty type of something used for testing
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class TestEmptyType extends BaseType
|
class TestEmptyType extends BaseType
|
||||||
{
|
{
|
||||||
@@ -194,8 +194,8 @@ class TestEmptyType extends BaseType
|
|||||||
/**
|
/**
|
||||||
* Type of something used for testing
|
* Type of something used for testing
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class TestType extends BaseType
|
class TestType extends BaseType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Type\DatePartType;
|
|||||||
/**
|
/**
|
||||||
* Test case of the type of date part, e.g. "year"
|
* Test case of the type of date part, e.g. "year"
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class DatePartTypeTest extends BaseTypeTestCase
|
class DatePartTypeTest extends BaseTypeTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use Meritoo\Common\Type\OopVisibilityType;
|
|||||||
/**
|
/**
|
||||||
* Test case of date's period
|
* Test case of date's period
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class DatePeriodTest extends BaseTypeTestCase
|
class DatePeriodTest extends BaseTypeTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Utilities\Arrays;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful arrays methods
|
* Test case of the useful arrays methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class ArraysTest extends BaseTestCase
|
class ArraysTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use Meritoo\Common\Utilities\Bundle;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful methods for bundle
|
* Test case of the useful methods for bundle
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class BundleTest extends BaseTestCase
|
class BundleTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ use Meritoo\Common\Utilities\Composer;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful Composer-related methods
|
* Test case of the useful Composer-related methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class ComposerTest extends BaseTestCase
|
class ComposerTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ use Meritoo\Common\Utilities\Date;
|
|||||||
/**
|
/**
|
||||||
* Test case of the Date methods (only static functions)
|
* Test case of the Date methods (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class DateTest extends BaseTestCase
|
class DateTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ use Meritoo\Common\Utilities\GeneratorUtility;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful methods for the Generator class
|
* Test case of the useful methods for the Generator class
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class GeneratorUtilityTest extends BaseTestCase
|
class GeneratorUtilityTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ use ReflectionException;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful locale methods
|
* Test case of the useful locale methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class LocaleTest extends BaseTestCase
|
class LocaleTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ use Meritoo\Common\Utilities\MimeTypes;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful methods for mime types of files
|
* Test case of the useful methods for mime types of files
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class MimeTypesTest extends BaseTestCase
|
class MimeTypesTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ use stdClass;
|
|||||||
/**
|
/**
|
||||||
* Test case of the Miscellaneous methods (only static functions)
|
* Test case of the Miscellaneous methods (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class MiscellaneousTest extends BaseTestCase
|
class MiscellaneousTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ use Meritoo\Common\Utilities\QueryBuilderUtility;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful methods for query builder (the Doctrine's QueryBuilder class)
|
* Test case of the useful methods for query builder (the Doctrine's QueryBuilder class)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class QueryBuilderUtilityTest extends BaseTestCase
|
class QueryBuilderUtilityTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The A class.
|
* The A class.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class A
|
class A
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The B class.
|
* The B class.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class B extends A implements I
|
class B extends A implements I
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The C class.
|
* The C class.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class C extends B
|
class C extends B
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The D class.
|
* The D class.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class D
|
class D
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The E trait.
|
* The E trait.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
trait E
|
trait E
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The F class.
|
* The F class.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class F
|
class F
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The G class.
|
* The G class.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class G
|
class G
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The H class.
|
* The H class.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class H
|
class H
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Reflection;
|
|||||||
* The H interface.
|
* The H interface.
|
||||||
* Used for testing the Reflection class.
|
* Used for testing the Reflection class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
interface I
|
interface I
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ use ReflectionProperty;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful reflection methods
|
* Test case of the useful reflection methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class ReflectionTest extends BaseTestCase
|
class ReflectionTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use ReflectionException;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful regular expressions methods
|
* Test case of the useful regular expressions methods
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class RegexTest extends BaseTestCase
|
class RegexTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace Meritoo\Common\Test\Utilities\Repository;
|
|||||||
* Sortable object/entity.
|
* Sortable object/entity.
|
||||||
* Used for testing the Repository class.
|
* Used for testing the Repository class.
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class Sortable
|
class Sortable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ use stdClass;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful methods for repository
|
* Test case of the useful methods for repository
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class RepositoryTest extends BaseTestCase
|
class RepositoryTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ use Meritoo\Common\Utilities\Uri;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful uri methods (only static functions)
|
* Test case of the useful uri methods (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class UriTest extends BaseTestCase
|
class UriTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ use SimpleXMLElement;
|
|||||||
/**
|
/**
|
||||||
* Test case of the useful XML-related methods (only static functions)
|
* Test case of the useful XML-related methods (only static functions)
|
||||||
*
|
*
|
||||||
* @author Krzysztof Niziol <krzysztof.niziol@meritoo.pl>
|
* @author Meritoo <github@meritoo.pl>
|
||||||
* @copyright Meritoo.pl
|
* @copyright Meritoo <http://www.meritoo.pl>
|
||||||
*/
|
*/
|
||||||
class XmlTest extends BaseTestCase
|
class XmlTest extends BaseTestCase
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user