getMockStorage(); $this->assertNotNull($storage); $manager = new KeyManager($storage); $this->assertNotNull($manager); } /** * @depends testConstruct */ public function testPersist() { $storage = $this->getMockStorage(); $this->assertNotNull($storage); $manager = new KeyManager($storage); $this->assertNotNull($manager); $manager->persist($this->getMockKey()); } /** * @depends testConstruct */ public function testLoad() { $storage = $this->getMockStorage(); $this->assertNotNull($storage); $manager = new KeyManager($storage); $this->assertNotNull($manager); $manager->load($this->getMockKey()); } private function getMockKey() { return new \Bitpay\PublicKey('/tmp/mock.key'); } private function getMockStorage() { return new \Bitpay\Storage\MockStorage(); } }