public function testDeleteUnsuccessful() { $key = 'Foo'; $adapter = Mockery::mock(self::$fileAdapterInterface); $sut = new LocalFile($key, $adapter); $adapter->shouldReceive('delete')->andReturn(false); $this->assertFalse($sut->delete()); }