Skip to content

Instantly share code, notes, and snippets.

@macek
macek / advanced_output
Created September 24, 2010 20:44
Output Buffering with Ruby
A contents <<<
send this to a
this goes to a
a, I forgot to add this
<<<
B contents <<<
this goes to b
b, please
<<<
@andrey-yantsen
andrey-yantsen / _bootstrap.php
Created August 13, 2013 10:48
Correct AspectMock configuration for Yii1
$kernel->init([
'debug' => false,
'includePaths' => [
__DIR__ . '/../'
],
'appDir' => __DIR__ . '/../',
'excludePaths' => [
__DIR__ . '/../config',
__DIR__ . '/../vendor/codeception/aspect-mock',
__DIR__ . '/../runtime',