-
-
Save MarcelloDuarte/07831388218f192068ce to your computer and use it in GitHub Desktop.
Update of phpspec syntax in version 2
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 | |
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'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do you know that this gist is private?