6 Commits

73 changed files with 33 additions and 3517 deletions

7
.gitignore vendored
View File

@@ -7,6 +7,7 @@
# ----------------------------------------------------------------------------------------------------------------------
### Composer
# ----------------------------------------------------------------------------------------------------------------------
/composer.lock
/composer.phar
@@ -28,6 +29,12 @@
/.php_cs.cache
# ----------------------------------------------------------------------------------------------------------------------
### Build files
# ----------------------------------------------------------------------------------------------------------------------
/build/
# ----------------------------------------------------------------------------------------------------------------------
### Generated databases
# ----------------------------------------------------------------------------------------------------------------------

View File

@@ -2,7 +2,7 @@
"name": "meritoo/common-library",
"description": "Useful classes, methods, extensions etc.",
"license": "MIT",
"version": "0.0.13",
"version": "0.0.14",
"authors": [
{
"name": "Meritoo.pl",
@@ -17,18 +17,22 @@
"symfony/http-foundation": "^3.3"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "^2.9",
"phpmd/phpmd": "^2.6",
"sebastian/phpcpd": "^3.0",
"friendsofphp/php-cs-fixer": "^2.6",
"pdepend/pdepend": "^2.5",
"phploc/phploc": "^4.0",
"friendsofphp/php-cs-fixer": "^2.6"
"phpmd/phpmd": "^2.6",
"phpunit/phpunit": "^5.7",
"sebastian/phpcpd": "^3.0",
"squizlabs/php_codesniffer": "^2.9"
},
"autoload": {
"psr-4": {
"Meritoo\\Common\\": "src/Meritoo/Common/",
"Meritoo\\Common\\Test\\": "tests/Meritoo/Common/Test/"
"Meritoo\\Common\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Meritoo\\Common\\Test\\": "tests/"
}
}
}

3494
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -25,7 +25,7 @@ class ArraysTest extends BaseTestCase
private $complexArray;
private $superComplexArray;
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Arrays::class);
}

View File

@@ -19,7 +19,7 @@ use Meritoo\Common\Utilities\Bundle;
*/
class BundleTest extends BaseTestCase
{
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Bundle::class);
}

View File

@@ -27,7 +27,7 @@ class ComposerTest extends BaseTestCase
*/
private $composerJsonPath;
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Composer::class);
}

View File

@@ -23,7 +23,7 @@ use Meritoo\Common\Utilities\Date;
*/
class DateTest extends BaseTestCase
{
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Date::class);
}

View File

@@ -19,7 +19,7 @@ use Meritoo\Common\Utilities\GeneratorUtility;
*/
class GeneratorUtilityTest extends BaseTestCase
{
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(GeneratorUtility::class);
}

View File

@@ -20,7 +20,7 @@ use Meritoo\Common\Utilities\Locale;
*/
class LocaleTest extends BaseTestCase
{
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Locale::class);
}

View File

@@ -20,7 +20,7 @@ use Meritoo\Common\Utilities\MimeTypes;
*/
class MimeTypesTest extends BaseTestCase
{
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(MimeTypes::class);
}

View File

@@ -28,7 +28,7 @@ class MiscellaneousTest extends BaseTestCase
private $stringCommaSeparated;
private $stringDotSeparated;
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Miscellaneous::class);
}
@@ -159,8 +159,8 @@ class MiscellaneousTest extends BaseTestCase
$expected = "int(123)\n";
if ($xdebugLoaded) {
$libraryPath = realpath(sprintf('%s%s', dirname(__FILE__), '/../../../../..'));
$filePath = sprintf('%s%s', $libraryPath, '/src/Meritoo/Common/Utilities/Miscellaneous.php:');
$libraryPath = realpath(sprintf('%s%s', dirname(__FILE__), '/../..'));
$filePath = sprintf('%s%s', $libraryPath, '/src/Utilities/Miscellaneous.php:');
/*
* Attention. I have to use "\d+" at the end of $filePath, because number of line may be different if new

View File

@@ -33,7 +33,7 @@ use ReflectionProperty;
*/
class ReflectionTest extends BaseTestCase
{
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Reflection::class);
}
@@ -270,7 +270,6 @@ class ReflectionTest extends BaseTestCase
self::assertEquals($city, Reflection::getPropertyValue($f, 'city'));
}
public function testGetPropertyValueWithPrivateGetter()
{
$accountBalance = 1000;

View File

@@ -21,7 +21,7 @@ class RegexTest extends BaseTestCase
private $simpleText;
private $camelCaseText;
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Regex::class);
}

View File

@@ -19,7 +19,7 @@ use Meritoo\Common\Utilities\Uri;
*/
class UriTest extends BaseTestCase
{
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Uri::class);
}

View File

@@ -23,7 +23,7 @@ class XmlTest extends BaseTestCase
private $simpleXml;
private $advancedXml;
public function verifyConstructor()
public function testConstructor()
{
static::assertHasNoConstructor(Xml::class);
}