Skip to content

Commit e9b641c

Browse files
authored
Merge pull request #14 from friends-of-phpspec/feature/move-namespace-forward
Introduce new root namespace: FriendsOfPhpSpec.
2 parents dab6cfd + 48976cc commit e9b641c

11 files changed

+50
-22
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/)
77
and this project adheres to [Semantic Versioning](http://semver.org/).
88

9+
## [4.3.1] - 2019-10-01
10+
11+
- Update root namespace to `FriendsOfPhpSpec` but maintain a class alias to the
12+
old one `LeanPHP`. The `LeanPHP` root namespace is now deprecated and will be
13+
removed in v5.
14+
915
## [4.3.0] - 2019-10-01
1016

1117
**Note!** This version mark the new home of the project. It was forked from

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Enable extension by editing `phpspec.yml` of your project:
3636

3737
``` yaml
3838
extensions:
39-
LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension: ~
39+
FriendsOfPhpSpec\PhpSpec\CodeCoverage\CodeCoverageExtension: ~
4040
```
4141
4242
This will sufficient to enable Code Coverage generation by using defaults
@@ -75,7 +75,7 @@ configuration file below has all of the [Configuration Options](#Options).
7575
extensions:
7676
# ... other extensions ...
7777
# friends-of-phpspec/phpspec-code-coverage
78-
LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension:
78+
FriendsOfPhpSpec\PhpSpec\CodeCoverage\CodeCoverageExtension:
7979
# Specify a list of formats in which code coverage report should be
8080
# generated.
8181
# Default: [html]

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@
5757
},
5858
"autoload": {
5959
"psr-4": {
60-
"LeanPHP\\PhpSpec\\CodeCoverage\\": "src/"
61-
}
60+
"FriendsOfPhpSpec\\PhpSpec\\CodeCoverage\\": "src/"
61+
},
62+
"files": [
63+
"src/bootstrap.php"
64+
]
6265
},
6366
"minimum-stability": "stable",
6467
"scripts": {

phpspec.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# phpspec.yml
2-
# leanphp/phpspec-code-coverage
2+
# friends-of-phpspec/phpspec-code-coverage
33
formatter.name: pretty
44
suites:
55
default_suite:
6-
namespace: LeanPHP\PhpSpec\CodeCoverage
7-
psr4_prefix: LeanPHP\PhpSpec\CodeCoverage
6+
namespace: FriendsOfPhpSpec\PhpSpec\CodeCoverage
7+
psr4_prefix: FriendsOfPhpSpec\PhpSpec\CodeCoverage
88

99
extensions:
10-
LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension:
10+
FriendsOfPhpSpec\PhpSpec\CodeCoverage\CodeCoverageExtension:
1111
format:
1212
- html
1313
- clover

spec/CodeCoverageExtensionSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace spec\LeanPHP\PhpSpec\CodeCoverage;
5+
namespace spec\FriendsOfPhpSpec\PhpSpec\CodeCoverage;
66

7-
use LeanPHP\PhpSpec\CodeCoverage\CodeCoverageExtension;
7+
use FriendsOfPhpSpec\PhpSpec\CodeCoverage\CodeCoverageExtension;
88
use PhpSpec\ObjectBehavior;
99
use PhpSpec\ServiceContainer\IndexedServiceContainer;
1010

spec/Exception/NoCoverageDriverAvailableExceptionSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace spec\LeanPHP\PhpSpec\CodeCoverage\Exception;
5+
namespace spec\FriendsOfPhpSpec\PhpSpec\CodeCoverage\Exception;
66

7-
use LeanPHP\PhpSpec\CodeCoverage\Exception\NoCoverageDriverAvailableException;
7+
use FriendsOfPhpSpec\PhpSpec\CodeCoverage\Exception\NoCoverageDriverAvailableException;
88
use PhpSpec\ObjectBehavior;
99

1010
/**

spec/Listener/CodeCoverageListenerSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace spec\LeanPHP\PhpSpec\CodeCoverage\Listener;
5+
namespace spec\FriendsOfPhpSpec\PhpSpec\CodeCoverage\Listener;
66

77
use PhpSpec\Console\ConsoleIO;
88
use PhpSpec\Event\SuiteEvent;

src/CodeCoverageExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* This file is part of the leanphp/phpspec-code-coverage package.
6+
* This file is part of the friends-of-phpspec/phpspec-code-coverage package.
77
*
88
* @author ek9 <dev@ek9.co>
99
* @license MIT
@@ -12,10 +12,10 @@
1212
* that was distributed with this source code.
1313
*/
1414

15-
namespace LeanPHP\PhpSpec\CodeCoverage;
15+
namespace FriendsOfPhpSpec\PhpSpec\CodeCoverage;
1616

17-
use LeanPHP\PhpSpec\CodeCoverage\Exception\NoCoverageDriverAvailableException;
18-
use LeanPHP\PhpSpec\CodeCoverage\Listener\CodeCoverageListener;
17+
use FriendsOfPhpSpec\PhpSpec\CodeCoverage\Exception\NoCoverageDriverAvailableException;
18+
use FriendsOfPhpSpec\PhpSpec\CodeCoverage\Listener\CodeCoverageListener;
1919
use PhpSpec\Extension;
2020
use PhpSpec\ServiceContainer;
2121
use SebastianBergmann\CodeCoverage\CodeCoverage;

src/Exception/NoCoverageDriverAvailableException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
declare(strict_types=1);
44

55
/**
6-
* This file is part of the leanphp/phpspec-code-coverage package.
6+
* This file is part of the friends-of-phpspec/phpspec-code-coverage.
77
*
8-
* @author shulard <s.hulard@chstudio.fr>
8+
* @author shulard <s.hulard@chstudio.fr>
99
* @license MIT
1010
*
1111
* For the full copyright and license information, please see the LICENSE file
1212
* that was distributed with this source code.
1313
*/
1414

15-
namespace LeanPHP\PhpSpec\CodeCoverage\Exception;
15+
namespace FriendsOfPhpSpec\PhpSpec\CodeCoverage\Exception;
1616

1717
use RuntimeException;
1818

src/Listener/CodeCoverageListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* This file is part of the leanphp/phpspec-code-coverage package.
6+
* This file is part of the friends-of-phpspec/phpspec-code-coverage package.
77
*
88
* @author ek9 <dev@ek9.co>
99
* @license MIT
@@ -12,7 +12,7 @@
1212
* that was distributed with this source code.
1313
*/
1414

15-
namespace LeanPHP\PhpSpec\CodeCoverage\Listener;
15+
namespace FriendsOfPhpSpec\PhpSpec\CodeCoverage\Listener;
1616

1717
use PhpSpec\Console\ConsoleIO;
1818
use PhpSpec\Event\ExampleEvent;

0 commit comments

Comments
 (0)