Created
August 22, 2012 16:41
-
-
Save yields/3427308 to your computer and use it in GitHub Desktop.
app.utilize();
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
describe('Application->utilize()') | |
->setup(function () { | |
return new Application; | |
}) | |
->it('should default the mount point to `/`', function () { | |
$layer = ['mount' => '/', 'execute' = function () {}, 'len' => 0]; | |
$this->utilize($layer['execute'])->stack->should->eql([$layer]); | |
}) | |
->it('should be return the `app`', function () { | |
$this->utilize(function () {})->should->eql($this->__obj__); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment