ludofleury
3/8/2013 - 10:44 AM

The power of atoum, everything in my job should be so simple.

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()
}