Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Adds test helpers and var-dumper for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 21, 2016
1 parent 4a930e7 commit ed0c92b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"require-dev": {
"phpunit/phpunit": "~5.0",
"mockery/mockery": "~0.9",
"phpunit/php-code-coverage": "^4.0"
"phpunit/php-code-coverage": "^4.0",
"symfony/var-dumper": "^3.1"
},
"autoload": {
"psr-4": {
Expand All @@ -25,6 +26,9 @@
"autoload-dev": {
"classmap": [
"tests/TestCase.php"
],
"files": [
"tests/helpers.php"
]
},
"minimum-stability": "dev",
Expand Down
13 changes: 13 additions & 0 deletions tests/helpers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

if (!function_exists('dd')) {
/**
* @param array ...$args
*/
function dd(...$args)
{
call_user_func_array('dump', $args);

die();
}
}

0 comments on commit ed0c92b

Please sign in to comment.