This file contains hidden or 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
Index: tests/Doctrine/Tests/DBAL/Connections/MasterSlaveConnectionTest.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- tests/Doctrine/Tests/DBAL/Connections/MasterSlaveConnectionTest.php (date 1550843977000) | |
+++ tests/Doctrine/Tests/DBAL/Connections/MasterSlaveConnectionTest.php (date 1550843977000) | |
@@ -0,0 +1,53 @@ | |
+<?php | |
+ |
This file contains hidden or 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 | |
interface Comparable { | |
function compare(self $compare); | |
} | |
class Foo implements Comparable { | |
function compare(self $compare) {} | |
} |
This file contains hidden or 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 | |
$img = new Imagick(); | |
$img->readImage('car.jpg'); | |
$draw = new ImagickDraw(); | |
/* | |
* Contrast enhancement | |
* |
This file contains hidden or 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 | |
$model = new SomeModel(); | |
$model->setName('test'); | |
$someService = $this->getMock('\My\Service\Some'); | |
$someService | |
->expects($this->any()) | |
->method('getAll') | |
->will($this->returnValue(array($model))); |
This file contains hidden or 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 | |
class DummyTest extends PHPUnit_Framework_TestCase | |
{ | |
/** | |
* @group example | |
* @dataProvider provider | |
*/ | |
public function testFoo($a) | |
{ |
This file contains hidden or 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 waitForElementNotPresent($locator, $retries = 0) | |
{ | |
$retries = abs(ceil($retries)); | |
do { | |
try { | |
return parent::waitForElementNotPresent($locator); | |
} catch (\Exception $e) {} |
This file contains hidden or 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
#include "IpRelay.h" | |
#include <stdexcept> | |
IpRelay::IpRelay(char *ipAddress, u_short port) | |
{ | |
this->setIpAddress(ipAddress); | |
this->port = port; | |
this->sock = INVALID_SOCKET; | |
} |
This file contains hidden or 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
/* {{{ proto int strtotime(string time [, int now ]) | |
Convert string representation of date and time to a timestamp */ | |
PHP_FUNCTION(strtotime) | |
{ | |
char *times, *initial_ts; | |
int time_len, error1, error2; | |
struct timelib_error_container *error; | |
long preset_ts = 0, ts; | |
timelib_time *t, *now; |
This file contains hidden or 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 | |
class UserTest extends PHPUnit_Extensions_SeleniumTestCase | |
{ | |
/** | |
* Navigate to the registration page, and enter the following data in the registration form: | |
* | |
* - email: [email protected] | |
* - name: John Doe | |
* |
This file contains hidden or 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 | |
/* | |
I would like to obtain the following elements: | |
<input type="text" name="foo[1]" /> | |
<input type="text" name="bar[1]" /> | |
*/ |
NewerOlder