/** * Add a structure to the storage * * @param Structure $structure */ public function add(Structure $structure) { $this->storage->add($structure); }
/** * @param gries\MControl\Storage\Structure\StructureStorageInterface $storage * @param gries\MControl\Builder\Structure $structure */ function it_should_add_a_structure_to_the_storage(StructureStorageInterface $storage, Structure $structure) { $storage->add($structure)->shouldBeCalled(); $this->beConstructedWith($storage); $this->add($structure); }