This file contains hidden or 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 | |
// how that: | |
class DescribeContextZend extends \PHPSpec\Context | |
{ | |
function before() { | |
$this->controller = $this->spec(new DescribeFooController); | |
} |
This file contains hidden or 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 | |
class DescribeClosedMail extends \PHPSpec\Context { | |
function itShowsAMailSubjectAndASenderAddress() { | |
$stubAddress = stub('MailAddress'); | |
$stubAddress->stub('__toString')->andReturn('dummyAddress'); | |
$mail = new ClosedMail('Urgent', $stubAddress); | |
$this->->spec((string)$mail)->should->be("<tr>\n" | |
. "<td class=\"subject\">Urgent</td>\n" |
NewerOlder