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 | |
interface WithButter { | |
} | |
interface WithHam { | |
} | |
class Bread { | |
public function withButter() { |
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 | |
$testcase = function(CodeGuy $i) { | |
$i->goTo('/home'); | |
$i->see('blablabl'); | |
$i->doEither(function(CodeGuy $i) { | |
$i->click('button'); | |
$i->see('hello'); | |
$i->doEither(function(CodeGuy $i) { | |
// next level subcase 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 | |
class Animal {} | |
class Cat extends Animal {} | |
class Dog extends Animal {} | |
class Manul {} | |
$c = new Cat; |
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 | |
class Service { | |
/** | |
* @di | |
* @var DepType $dep | |
* | |
*/ | |
protected $dep; | |
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 | |
/** | |
* @property-read DbConnection $db | |
* @di $db | |
*/ | |
class BlaBla1 { | |
public function doIt() { | |
$this->db->query('SELECT NOW()'); |
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 | |
// Base of any runner | |
abstract class Runner { | |
public abstract function run(); | |
} | |
abstract class Configuration { | |
// TODO validation, defaults etc. | |
} |
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
dojo.require("dojo.io.script"); | |
dojo.require("dijit.Dialog"); | |
dojo.require("dijit.TooltipDialog"); | |
dojo.require("dijit.layout.ContentPane"); | |
dojo.require("dijit.form.Button"); | |
dojo.require("dijit.form.Form"); | |
dojo.require("dijit.form.Textarea"); | |
dojo.require("dijit.form.ValidationTextBox"); | |
dojo.require("dojo.cookie"); | |
dojo.require("dojo.parser"); |