Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

Commit a395179

Browse files
committed
source code moved to 'src' directory
1 parent 90ff020 commit a395179

12 files changed

+5
-11
lines changed

.travis.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,5 @@ install:
2121
- travis_retry composer install --prefer-dist --no-interaction
2222

2323
script:
24-
- phpunit --verbose $PHPUNIT_FLAGS
24+
- phpunit $PHPUNIT_FLAGS
2525

26-
after_script:
27-
- |
28-
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
29-
cd ../../..
30-
travis_retry wget https://scrutinizer-ci.com/ocular.phar
31-
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
32-
fi

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
],
2828
"autoload": {
29-
"psr-4": { "yii2tech\\selfupdate\\": "" }
29+
"psr-4": {"yii2tech\\selfupdate\\": "src"}
3030
},
3131
"extra": {
3232
"branch-alias": {

phpunit.xml.dist

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<phpunit bootstrap="./tests/bootstrap.php"
33
colors="true"
4+
verbose="true"
45
convertErrorsToExceptions="true"
56
convertNoticesToExceptions="true"
67
convertWarningsToExceptions="true"

Git.php renamed to src/Git.php

File renamed without changes.
File renamed without changes.

SelfUpdateController.php renamed to src/SelfUpdateController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ protected function releaseMutex()
326326
*/
327327
protected function composeMutexName()
328328
{
329-
return $this->className() . '::' . $this->action->getUniqueId();
329+
return get_class($this) . '::' . $this->action->getUniqueId();
330330
}
331331

332332
/**

Shell.php renamed to src/Shell.php

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
require_once(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
1313

1414
Yii::setAlias('@yii2tech/tests/unit/selfupdate', __DIR__);
15-
Yii::setAlias('@yii2tech/selfupdate', dirname(__DIR__));
15+
Yii::setAlias('@yii2tech/selfupdate', dirname(__DIR__) . '/src');
1616

1717
require_once(__DIR__ . '/compatibility.php');

0 commit comments

Comments
 (0)