Skip to content

Instantly share code, notes, and snippets.

@ludofleury
Created March 8, 2013 10:44
Show Gist options
  • Save ludofleury/5115641 to your computer and use it in GitHub Desktop.
Save ludofleury/5115641 to your computer and use it in GitHub Desktop.
The power of atoum, everything in my job should be so simple.
<?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