/** * @depends testConcatIv */ function testSplitIv($testConcatIv) { // Split catfile into components $splitCatfile = Encryption\Crypt::splitIv($testConcatIv['catfile']); // Check that original IV and split IV match $this->assertEquals($testConcatIv['iv'], $splitCatfile['iv']); // Check that original data and split data match $this->assertEquals($this->dataLong, $splitCatfile['encrypted']); }