Beispiel #1
0
 /**
  * @param FileReaderProxy $fileReaderProxy
  * @param string $primaryKey
  */
 public function __construct(FileReaderProxy $fileReaderProxy, $primaryKey = '')
 {
     parent::__construct($fileReaderProxy, $primaryKey);
 }
Beispiel #2
0
 public function testRemoveAllEmpty()
 {
     $fileReader = new DummyFileReader();
     $jsonFileReader = new Json($fileReader);
     $fileManager = new FileManager($jsonFileReader);
     $result = $fileManager->removeAll();
     $this->assertSame(4, $result);
     $result = $fileManager->getAll();
     $this->assertSame([], $result);
 }