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 Context { | |
var $foo = 'Hello, World'; | |
} | |
class Func { | |
function fn (callable $fn) { | |
$fn = $fn->bindto(new Context); | |
$fn(); |
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 Context { | |
var $foo = 'Hello, World'; | |
} | |
function contextbind ($cb) { | |
$cb = Closure::bind($cb, new Context); | |
$cb(); | |
}; |
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
function describe () {} | |
describe('Request', function ($it) { | |
describe('Request#path', function ($it) { | |
$it('should equal `/`', function () { | |
return (new Request)->path; | |
})->should->equal('/'); |
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 | |
function describe () {} | |
describe('Request', [ | |
'it foo bar' => function () { | |
} |
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
class Context { | |
var $foo = 'Hello, World'; | |
} | |
function contextbind(&$cb) { | |
$cb = $cb->bindTo(new Context); | |
$cb(); | |
} |
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 Context { | |
var $foo = 'Hello, World'; | |
} | |
function contextbind(&$cb) { | |
$cb = $cb->bindTo(new Context); | |
$cb(); | |
} |
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 Context { | |
var $foo = 'Hello, World'; | |
} | |
function contextbind(&$cb) { | |
$cb->bindTo(new Context); | |
} |
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
class Context { | |
var $foo = 'Hello, World'; | |
} | |
function contextbind (&$cb) { | |
$cb = $cb->bindTo(new Context()); | |
} | |
contextbind(function () { | |
echo $this->foo; |
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
export PATH=/Applications/MAMP/bin/php/php5.3.6/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/sbin:/sbin:/usr/bin:/usr/X11/bin |
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
export PATH=/usr/local/bin:/usr/local/sbin:/bin:/usr/sbin:/sbin:/usr/bin:/usr/X11/bin |
NewerOlder