This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here is the function in the test file: | |
public function testStartUnprocessedWithFailedTradeRequest() { | |
//TODO: Fix Broken test | |
$Trades = $this->getMockBuilder('_TradeRequest') | |
->setMethods(array('send')) | |
->disableOriginalConstructor() | |
->getMock(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree -d -L 3 . | |
. | |
├── src | |
│ ├── config | |
│ └── Yumilicious | |
│ ├── Controller | |
│ ├── Dao | |
│ ├── Domain | |
│ ├── Entity | |
│ ├── Exception |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f /etc/bash_completion ]; then | |
source /etc/bash_completion | |
fi | |
__has_parent_dir () { | |
# Utility function so we can test for things like .git/.hg without firing up a | |
# separate process | |
test -d "$1" && return 0; | |
current="." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$authentication = $container->get('Zend\Authentication'); | |
vs | |
$authentication = $container->get(Authentication::class); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/xdebug | |
=========== | |
#!/bin/bash | |
XDEBUG_CONFIG="idekey=xdebug" php -dxdebug.remote_host=`echo $SSH_CLIENT | cut -d "=" -f 2 | awk '{print $1}'` "$@" | |
---------- | |
execve("/usr/bin/xdebug", ["xdebug", "index.php"], [/* 18 vars */]) = 0 | |
brk(0) = 0x14fc000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ strace -o /tmp/strace.log php index.php | |
execve("/usr/bin/php", ["php", "index.php"], [/* 18 vars */]) = 0 | |
brk(0) = 0x2d1a000 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe43d74f000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=20514, ...}) = 0 | |
mmap(NULL, 20514, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe43d749000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[03:00 PM]-[vagrant@debian-70rc1-x64-vbox4210]-[~] | |
$ sudo strace -r /tmp/strace.log sudo php info.php | |
0.000000 execve("/tmp/strace.log", ["/tmp/strace.log", "sudo", "php", "info.php"], [/* 15 vars */]) = -1 EACCES (Permission denied) | |
0.000066 dup(2) = 3 | |
0.000165 fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) | |
0.000337 fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 | |
0.000236 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7feea01da000 | |
0.000249 lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) | |
0.000256 write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission denied | |
) = 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[03:03 PM]-[vagrant@debian-70rc1-x64-vbox4210]-[~] | |
$ sudo strace -tt /tmp/strace.log php info.php | |
15:09:21.606630 execve("/tmp/strace.log", ["/tmp/strace.log", "php", "info.php"], [/* 15 vars */]) = -1 EACCES (Permission denied) | |
15:09:21.607112 dup(2) = 3 | |
15:09:21.607352 fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) | |
15:09:21.607658 fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 | |
15:09:21.607935 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f253094c000 | |
15:09:21.608159 lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) | |
15:09:21.608444 write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission denied | |
) = 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo strace -o test.log -tt php info.php | |
15:10:58.267019 execve("/usr/bin/php", ["php", "info.php"], [/* 15 vars */]) = 0 | |
15:10:58.267190 brk(0) = 0x1c6b000 | |
15:10:58.267231 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
15:10:58.267267 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a46b13000 | |
15:10:58.267295 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
15:10:58.267329 open("/etc/ld.so.cache", O_RDONLY) = 3 | |
15:10:58.267353 fstat(3, {st_mode=S_IFREG|0644, st_size=20514, ...}) = 0 | |
15:10:58.267378 mmap(NULL, 20514, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6a46b0d000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xdebug.idekey=xdebug | |
xdebug.remote_host=10.0.2.2 | |
xdebug.default_enable = 1 | |
xdebug.remote_autostart = 1 | |
xdebug.remote_connect_back = 1 | |
xdebug.remote_enable = 1 | |
xdebug.remote_handler = "dbgp" | |
xdebug.remote_port = 9000 |
OlderNewer