Tests - increase code coverage

This commit is contained in:
Meritoo
2018-03-30 22:07:04 +02:00
parent b7d0b61094
commit 8d1df9ced8
4 changed files with 1186 additions and 80 deletions

View File

@@ -14,7 +14,9 @@ use Meritoo\Common\Exception\Type\UnknownOopVisibilityTypeException;
use Meritoo\Common\Type\OopVisibilityType;
use Meritoo\Common\Utilities\Miscellaneous;
use ReflectionClass;
use ReflectionException;
use ReflectionMethod;
use stdClass;
/**
* BaseTestCaseTrait
@@ -103,6 +105,26 @@ trait BaseTestCaseTrait
yield['surprise/me/one/more/time.txt'];
}
/**
* Provides non scalar value, e.g. [] or null
*
* @return Generator
*/
public function provideNonScalarValue()
{
yield[
[],
];
yield[
null,
];
yield[
new stdClass(),
];
}
/**
* Returns path of file used by tests.
* It should be placed in /.data/tests directory of this project.