Skip to content

Commit

Permalink
Updated .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
overclokk committed Oct 6, 2020
1 parent d98c385 commit 07f9dc9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ before_script:

script:
- find ./config/ ./functions/ ./src/ ./templates/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
- composer cs
# - vendor/bin/phpcs --ignore=./tests/_support/* ./src/ ./tests/
- vendor/bin/phpcs --ignore=./tests/_support/* ./config/ ./functions/ ./src/ ./templates/ ./tests/
- vendor/bin/phpstan analyze
# - vendor/bin/psalm
- codecept run wpunit && codecept run unit --coverage-text
Expand Down
3 changes: 2 additions & 1 deletion infection.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"source": {
"directories": [
"src"
"src",
"functions"
]
},
"logs": {
Expand Down
14 changes: 12 additions & 2 deletions tests/unit/functions/FactoryInjectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ private function resetFilterCountCallState() {
protected function _before() {
setUp();

replace('\ItalyStrap\Core\is_debug', $this->is_debug );

$this->resetFilterCountCallState();

// phpcs:ignore
Expand All @@ -79,6 +77,9 @@ protected function _after() {
* @test
*/
public function instanceOkWithFilterFalse() {
$this->is_debug = false;
replace('\ItalyStrap\Core\is_debug', $this->is_debug );

$this->injector = false;
$injector = injector();

Expand All @@ -94,6 +95,9 @@ public function instanceOkWithFilterFalse() {
* @test
*/
public function instanceOkWithFilterReturnPrevInstanceOfAuryn() {
$this->is_debug = false;
replace('\ItalyStrap\Core\is_debug', $this->is_debug );

$this->injector = new AurynInjector();
$injector = injector();

Expand All @@ -109,6 +113,9 @@ public function instanceOkWithFilterReturnPrevInstanceOfAuryn() {
* @test
*/
public function instanceOkWithFilterReturnPrevInstanceOfEmpress() {
$this->is_debug = false;
replace('\ItalyStrap\Core\is_debug', $this->is_debug );

$this->injector = new EmpressInjector();
$injector = injector();

Expand All @@ -124,6 +131,9 @@ public function instanceOkWithFilterReturnPrevInstanceOfEmpress() {
* @test
*/
public function assertReturnSameInstance() {
$this->is_debug = false;
replace('\ItalyStrap\Core\is_debug', $this->is_debug );

$injector = injector();
$another_injector = injector();

Expand Down

0 comments on commit 07f9dc9

Please sign in to comment.