Beispiel #1
0
 /**
  * @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);
 }
Beispiel #2
0
 /**
  * Add a block to the repository
  *
  * @param Block $block
  */
 public function add(Block $block)
 {
     $this->storage->add($block);
 }