/** * @test */ public function remove_withObject_removesObjectFromDirectory() { $object = Mockery::mock('FileSystem\\Tests\\Assets\\Object')->shouldIgnoreMissing(); $object->name = 'object'; $this->directory->add($object); $this->directory->remove($object); assertThat($this->directory->objects, noneOf(hasKey($object->name), hasItem($object))); }
public function testHasAReadableDescription() { $this->assertDescription('a collection containing "a"', hasItem(equalTo('a'))); }