/** * Tests Target::getCrypter */ public function testGetCrypter() { $mock = $this->getCrypterMock('nc'); $path = '/tmp/foo/bar'; $filename = '%Y-test-%d.txt'; $target = new Target($path, $filename, strtotime('2014-12-01 04:30:57')); $target->setCrypter($mock); $crypter = $target->getCrypter($mock); $this->assertEquals($mock, $crypter); }