Created
March 8, 2013 10:44
-
-
Save ludofleury/5115641 to your computer and use it in GitHub Desktop.
The power of atoum, everything in my job should be so simple.
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 | |
public function testAddBox() | |
{ | |
$package = new Entity\Package(); | |
$box = new \Mock\MyLittle\Bundle\BoxBundle\Entity\Box; | |
$this | |
->object($package->addBox($box)) | |
->isIdenticalTo($package) | |
->mock($box) | |
->call('setPackage') | |
->withIdenticalArguments($package) | |
->once() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment