/** * @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 testNoneOfHasAReadableDescription() { $this->assertDescription('not ("good" or "bad" or "ugly")', noneOf('good', 'bad', 'ugly')); }