Skip to content

Instantly share code, notes, and snippets.

@yields
Created August 22, 2012 16:41
Show Gist options
  • Save yields/3427308 to your computer and use it in GitHub Desktop.
Save yields/3427308 to your computer and use it in GitHub Desktop.
app.utilize();
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