Example #1
0
 public function testReadUnsuccessful()
 {
     $key = 'Foo';
     $adapter = Mockery::mock(self::$fileAdapterInterface);
     $sut = new LocalFile($key, $adapter);
     $adapter->shouldReceive('read')->andReturn(false);
     $this->assertEquals(false, $sut->read());
 }