Instantly share code, notes, and snippets.

View .gitignore
/.idea/
/vendor/
/composer.lock
View PlaylistGenerator.php
<?php
namespace PetrKnap\Gist;
use DirectoryIterator;
use SplFileInfo;
class PlaylistGenerator
{
const TYPE_M3U = "m3u";
View phpunit.macro
#!/usr/bin/env bash
phpunit() {
local RETURN_CODE=0
for D in `find . -type f -name "phpunit.xml" -printf "%h\n"`
do
(
cd "$D"
echo "${PWD}"
command phpunit "$@"