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
Good morning! | |
We are planning to leave for Ljubljana tomorrow around 9h. I am not sure what the conditions are on the road, but we should be there around 15h. Is that OK for you? I will send you a message when we enter Slovenia, from then it would be another hour or so to get to Ljubljana. | |
=============== | |
Dobro jutro! | |
Načrtujemo, da zapusti Ljubljano jutri okoli 9h. Nisem prepričan, kaj so pogoji na cesti, vendar moramo biti tam okoli 15h. Je to v redu za vas? Jaz vam poslali sporočilo, ko bomo vstopili v Slovenijo, od takrat pa bi bil še en uro ali tako, da se v Ljubljano. |
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
php > $x = 3.42 - (3.42 * 0.12); | |
php > var_dump($x); | |
float(3.0096) | |
php > var_dump(var_export($x,true)); | |
string(18) "3.0095999999999998" | |
php > echo $x; | |
3.0096 |
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
Program received signal SIGSEGV, Segmentation fault. | |
0x00007f91a76a0ca8 in gearman_client_run_tasks () from /usr/lib/x86_64-linux-gnu/libgearman.so.7 | |
(gdb) backtrace full | |
#0 0x00007f91a76a0ca8 in gearman_client_run_tasks () from /usr/lib/x86_64-linux-gnu/libgearman.so.7 | |
No symbol table info available. | |
#1 0x00007f91a78c72e4 in zif_gearman_client_run_tasks (ht=<optimized out>, return_value=0x7f91b65762d0, return_value_ptr=<optimized out>, | |
this_ptr=<optimized out>, return_value_used=<optimized out>) at /tmp/pear/temp/gearman/php_gearman.c:3167 | |
zobj = 0x7f91b6c6cf08 | |
obj = 0x7f91b629f890 | |
#2 0x00007f91afa2bbe2 in ?? () from /usr/lib/apache2/modules/libphp5.so |
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
(gdb) backtrace | |
#0 0x00007f91a76a0ca8 in gearman_client_run_tasks () from /usr/lib/x86_64-linux-gnu/libgearman.so.7 | |
#1 0x00007f91a78c72e4 in zif_gearman_client_run_tasks (ht=<optimized out>, return_value=0x7f91b65762d0, return_value_ptr=<optimized out>, | |
this_ptr=<optimized out>, return_value_used=<optimized out>) at /tmp/pear/temp/gearman/php_gearman.c:3167 | |
#2 0x00007f91afa2bbe2 in ?? () from /usr/lib/apache2/modules/libphp5.so | |
#3 0x00007f91af9e5427 in execute () from /usr/lib/apache2/modules/libphp5.so | |
#4 0x00007f91af98525c in zend_execute_scripts () from /usr/lib/apache2/modules/libphp5.so | |
#5 0x00007f91af924673 in php_execute_script () from /usr/lib/apache2/modules/libphp5.so | |
#6 0x00007f91afa2df7a in ?? () from /usr/lib/apache2/modules/libphp5.so | |
#7 0x00007f91b36845f0 in ap_run_handler (r=0x7f91b352eab0) at config.c:159 |
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/env bash | |
MODULE_DIR="module" | |
TEST_DIR="/test" | |
DOCS_DIR="/docs" | |
COVERAGE_DIR=$PWD"/docs/coverage/" | |
COVERAGE_INDEX=$COVERAGE_DIR$MODULE_DIR"/index.html" | |
BOOTSTRAP_FILE="Bootstrap.php" | |
PHPUNIT_FILE="phpunit.xml" |
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
<?php | |
$arr1 = array( | |
'CustomerId' => NULL, | |
'CsgHeaderInfo' => array( | |
'ConversationId' => NULL, | |
'Region' => NULL, | |
'RoutingArea' => "83513001", | |
), | |
'SearchFilter' => array ( | |
'AccountId' => "8351300110000561", |
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
<?php | |
$arr1 = array('a' => 'foo', 'b' => 'bar', 'c' => array('spam', 'ham'), 'd' => array('baz')); | |
$arr2 = array('a' => 'foo', 'c' => array('ham'), 'd' => array('baz')); | |
$result = array_uintersect_assoc($arr1, $arr2, function ($a1, $a2) { | |
if ($a1 === $a2) { | |
return 0; | |
} | |
return -1; |
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
<?php | |
return array( | |
'invokables' => array( | |
'module_config' => '\MyModule\Config' | |
) | |
); |
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
<?php | |
public function testMockingConstants() | |
{ | |
$this->assertTrue(MyMock::MY_CONST); | |
} | |
MyMock extends MyClass | |
{ | |
CONST MY_CONST = true; |
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
<?php | |
namespace Blog\Model\Table; | |
use PHPUnit_Framework_TestCase as TestCase; | |
use \Mockery as m; | |
use Zend\ServiceManager\ServiceManager; | |
use Zend\Db\Sql\Expression; |