Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nozavroni/fantaskic
Browse files Browse the repository at this point in the history
  • Loading branch information
nozavroni committed Dec 19, 2016
2 parents 31dda9b + 7c908b1 commit 0985baf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
5 changes: 3 additions & 2 deletions src/Fantaskic/Fantaskic.php
@@ -1,15 +1,16 @@
<?php
/**
* Fantaskic: A queue-agnostic task library for PHP
* Fantaskic: A queue-agnostic task library for PHP.
*
* A task/job library meant to be paired with any job queue imaginable.
*
* @package Fantaskic
* @version v0.1
*
* @copyright Copyright (c) 2016 Luke Visinoni <luke.visinoni@gmail.com>
* @author Luke Visinoni <luke.visinoni@gmail.com>
* @license https://github.com/nozavroni/fantaskic/blob/master/LICENSE (MIT)
*/

namespace Fantaskic;

class Fantaskic
Expand Down
5 changes: 3 additions & 2 deletions tests/Fantaskic/FantaskicTest.php
@@ -1,15 +1,16 @@
<?php
/**
* Fantaskic: A queue-agnostic task library for PHP
* Fantaskic: A queue-agnostic task library for PHP.
*
* A task/job library meant to be paired with any job queue imaginable.
*
* @package Fantaskic
* @version v0.1
*
* @copyright Copyright (c) 2016 Luke Visinoni <luke.visinoni@gmail.com>
* @author Luke Visinoni <luke.visinoni@gmail.com>
* @license https://github.com/nozavroni/fantaskic/blob/master/LICENSE (MIT)
*/

namespace FantaskicTest;

class FantaskicTest extends UnitTestCase
Expand Down
6 changes: 3 additions & 3 deletions tests/Fantaskic/UnitTestCase.php
@@ -1,20 +1,20 @@
<?php
/**
* Fantaskic: A queue-agnostic task library for PHP
* Fantaskic: A queue-agnostic task library for PHP.
*
* A task/job library meant to be paired with any job queue imaginable.
*
* @package Fantaskic
* @version v0.1
*
* @copyright Copyright (c) 2016 Luke Visinoni <luke.visinoni@gmail.com>
* @author Luke Visinoni <luke.visinoni@gmail.com>
* @license https://github.com/nozavroni/fantaskic/blob/master/LICENSE (MIT)
*/

namespace FantaskicTest;

use PHPUnit_Framework_TestCase;

class UnitTestCase extends PHPUnit_Framework_TestCase
{

}
27 changes: 16 additions & 11 deletions tests/bootstrap.php
@@ -1,23 +1,23 @@
<?php
/**
* Fantaskic: A queue-agnostic task library for PHP
* Fantaskic: A queue-agnostic task library for PHP.
*
* A task/job library meant to be paired with any job queue imaginable.
*
* @package Fantaskic
* @version v0.1
*
* @copyright Copyright (c) 2016 Luke Visinoni <luke.visinoni@gmail.com>
* @author Luke Visinoni <luke.visinoni@gmail.com>
* @license https://github.com/nozavroni/fantaskic/blob/master/LICENSE (MIT)
*/
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__.'/../vendor/autoload.php';

if (!function_exists('dd')) {
/**
* Dump and Die.
*
* @param mixed $input Value to dump
* @param bool $exit True to exit after dump
* @param mixed $input Value to dump
* @param bool $exit True to exit after dump
* @param string $label Optional label
*/
function dd($input, $exit = true, $label = null)
Expand All @@ -26,7 +26,7 @@ function dd($input, $exit = true, $label = null)
echo $label."\n".implode(
array_map(
function ($c) {
return "-";
return '-';
},
str_split($label)
)
Expand All @@ -46,16 +46,21 @@ function ($c) {
* Dump a variable and show invisible characters.
*
* @param mixed $in
* @param bool $exit
* @param bool $dump
* @param bool $exit
* @param bool $dump
*
* @return string|void
*/
function si($in, $exit = true, $dump = true)
{
$out = json_encode($in);
if ($dump) return var_dump($out);
else {
if ($exit) exit($out);
if ($dump) {
return var_dump($out);
} else {
if ($exit) {
exit($out);
}
}

return $out;
}

0 comments on commit 0985baf

Please sign in to comment.