-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: increase coverage to 100 (#6)
* fixes self constant parameter default types * allows magic methods overriding Co-authored-by: Jorge Brisa <[email protected]>
- Loading branch information
Showing
5 changed files
with
146 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
|
||
class Dummy | ||
{ | ||
const SOME_VALUE = 'dummy-value'; | ||
|
||
public function hello(): string | ||
{ | ||
return 'hello'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Golossus\LazyProxyLoading\Tests; | ||
|
||
class InstanceSpy | ||
{ | ||
private $method; | ||
private $input; | ||
|
||
/** | ||
* InstanceSpy constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
} | ||
|
||
public function setVars($method, $input = null) | ||
{ | ||
$this->method = $method; | ||
$this->input = $input; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getMethod() | ||
{ | ||
return $this->method; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getInput() | ||
{ | ||
return $this->input; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters