Skip to content

Commit

Permalink
Update helpers.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Feb 28, 2024
1 parent 4ef359c commit b5d236c
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions library/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,51 @@
*
* @copyright https://github.com/mockery/mockery/blob/HEAD/COPYRIGHT.md
* @license https://github.com/mockery/mockery/blob/HEAD/LICENSE BSD 3-Clause License
*
* @link https://github.com/mockery/mockery for the canonical source repository
*/

use Mockery\Matcher\AndAnyOtherArgs;
use Mockery\Matcher\AnyArgs;

if (!function_exists("mock")) {
if (! \function_exists('mock')) {

Check warning on line 15 in library/helpers.php

View check run for this annotation

Codecov / codecov/patch

library/helpers.php#L15

Added line #L15 was not covered by tests
function mock(...$args)
{
return Mockery::mock(...$args);
}
}

if (!function_exists("spy")) {
if (! \function_exists('spy')) {

Check warning on line 22 in library/helpers.php

View check run for this annotation

Codecov / codecov/patch

library/helpers.php#L22

Added line #L22 was not covered by tests
function spy(...$args)
{
return Mockery::spy(...$args);
}
}

if (!function_exists("namedMock")) {
if (! \function_exists('namedMock')) {

Check warning on line 29 in library/helpers.php

View check run for this annotation

Codecov / codecov/patch

library/helpers.php#L29

Added line #L29 was not covered by tests
function namedMock(...$args)
{
return Mockery::namedMock(...$args);
}
}

if (!function_exists("anyArgs")) {
if (! \function_exists('anyArgs')) {

Check warning on line 36 in library/helpers.php

View check run for this annotation

Codecov / codecov/patch

library/helpers.php#L36

Added line #L36 was not covered by tests
function anyArgs()
{
return new AnyArgs();
}
}

if (!function_exists("andAnyOtherArgs")) {
if (! \function_exists('andAnyOtherArgs')) {

Check warning on line 43 in library/helpers.php

View check run for this annotation

Codecov / codecov/patch

library/helpers.php#L43

Added line #L43 was not covered by tests
function andAnyOtherArgs()
{
return new AndAnyOtherArgs();
}
}

if (!function_exists("andAnyOthers")) {
if (! \function_exists('andAnyOthers')) {

Check warning on line 50 in library/helpers.php

View check run for this annotation

Codecov / codecov/patch

library/helpers.php#L50

Added line #L50 was not covered by tests
function andAnyOthers()
{
return new AndAnyOtherArgs();
}
}
//
//$currentDirectory = dirname(__FILE__,2);
//$libraryDirectory = $currentDirectory . '/library';
//if (! file_exists($libraryDirectory))
//{
// symlink(
// $currentDirectory . '/library',
// $libraryDirectory
// );
//}

0 comments on commit b5d236c

Please sign in to comment.