Skip to content

Instantly share code, notes, and snippets.

@MarcelloDuarte
Created October 14, 2012 08:07
Show Gist options
  • Save MarcelloDuarte/07831388218f192068ce to your computer and use it in GitHub Desktop.
Save MarcelloDuarte/07831388218f192068ce to your computer and use it in GitHub Desktop.
Update of phpspec syntax in version 2
<?php
use PHPSpec2\ObjectBehavior;
class ContextZend extends ObjectBehavior
{
function it_should_set_controller_name_using_context_class()
{
$this->getController()->shouldBe('Foo');
}
function it_should_create_front_controller_when_instantiated()
{
$this->getFrontController()->shouldBeAnInstanceOf('Zend_Controller_Front');
}
}
@liuggio
Copy link

liuggio commented Jan 5, 2013

do you know that this gist is private?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment