/** * @param gries\MControl\Storage\Block\BlockStorageInterface $storage * @param gries\MControl\Builder\Block $block */ function it_should_add_a_block_to_the_storage(BlockStorageInterface $storage, Block $block) { $storage->add($block)->shouldBeCalled(); $this->beConstructedWith($storage); $this->add($block); }
/** * Add a block to the repository * * @param Block $block */ public function add(Block $block) { $this->storage->add($block); }