Skip to content

Instantly share code, notes, and snippets.

Licensed to The Apache Software Foundation, http://www.apache Licensed to The Apache Software Foundation, http://www.apache
Benchmarking auth.tts.dev (be patient) Benchmarking auth.tts.dev (be patient)
Server Software: nginx Server Software: nginx
Server Hostname: auth.tts.dev Server Hostname: auth.tts.dev
Server Port: 80 Server Port: 80
Document Path: /test/auth/rpc | Document Path: /test/auth/restful
[XDebug]
zend_extension = xdebug.so
; ?XDEBUG_PROFILE=1
xdebug.remote_host = 127.0.0.1
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
xdebug.remote_mode = req
xdebug.profiler_enable=0
@tonythere
tonythere / stuns
Last active August 29, 2015 14:10 — forked from yetithefoot/stuns
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
<?php
/**
* @param String $url
* @return object
*/
function get_yt_info($url)
{
$id = get_yt_id($url);
if (is_null($id)) {
return Response::json(['error' => 'Link không hợp lệ!']);
$(window).load(function () {
$('.ads-close').show();
$('.ads-close2').hide();
$('.ads-fly').fadeIn(400);
});
sudo apt-get install libxi-dev libxmu-dev
# go to your genymotion directory
mkdir QtLibs && mv *Qt*.so* QtLibs
  • Go to File -> Settings -> PHP -> PHPUNIT.
  • Select Use custom loader and then enter the autoload.php file from your projects vendor directory. This autoloader will autoload all the dependencies managed by Composer (including PHPUnit).
  • Specify the default configuration file (this is usually phpunit.xml.dist from your project's app directory). image 1

@aderuwe's answer works but that config isn't scoped per project, it's for all projects. Since PHPStorm 6 (actually even EAP version PS-126.260) you can do the following:

Go to File -> Settings -> PHP -> PHPUNIT. Select Use custom loader and then enter the autoload.php file from your projects vendor directory. This autoloader will autoload all the dependencies managed by Composer (including PHPUnit).

;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix (/opt/php-5.6.7). This prefix can be dynamically changed by using the
; '-p' argument from the command line.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
extension=mongo.so
extension=redis.so
;extension=libevent.so
;extension=pthreads.so
[OpCache]
zend_extension=opcache.so
opcache.revalidate_freq=0
; (comment this out in your dev environment)
[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
;output_handler =