/** * @testdox serialize() tests * @dataProvider getSerializeTests */ public function testSerialize($tokens, $expected) { if ($expected instanceof Exception) { $this->setExpectedException(get_class($expected), $expected->getMessage()); } $this->assertSame($expected, AVTHelper::serialize($tokens)); }