Skip to content

Instantly share code, notes, and snippets.

View madmis's full-sized avatar
🙃
Always ready for challenges

Dmytro madmis

🙃
Always ready for challenges
View GitHub Profile
<?php
require_once dirname(__DIR__).'/../../../../app/AppKernel.php';
/**
* Test case class helpful with Entity tests requiring the database interaction.
* For regular entity tests it's better to extend standard \PHPUnit_Framework_TestCase instead.
*/
abstract class KernelAwareTest extends \PHPUnit_Framework_TestCase
{
@madmis
madmis / nginx.conf
Last active August 29, 2015 14:01 — forked from leon/nginx.conf
server {
listen 80;
root /home/dimon/www/avto.dev/web/;
server_name avto.dev;
set $front_part app_dev;
set $front $front_part.php;
rewrite ^/$front_part\.php/?(.*)$ /$1 permanent;
<?php
$diff = 450752;
$format = sprintf('%02d:%02d:%02d', ($diff / 3600), ($diff / 60 % 60), $diff % 60);
echo $format;