芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/vendor/ircmaxell/security-lib/test/Unit/Core/BaseConverterTest.php
assertEquals($expect, $result); } /** * @covers SecurityLib\BaseConverter::convertToBinary * @covers SecurityLib\BaseConverter::baseConvert * @dataProvider provideConvertFromBinary */ public function testConvertToBinary($expect, $from, $str) { $result = BaseConverter::convertToBinary($str, $from); $result = ltrim($result, chr(0)); $expect = ltrim($expect, chr(0)); $this->assertEquals($expect, $result); } /** * @covers SecurityLib\BaseConverter::convertToBinary * @covers SecurityLib\BaseConverter::convertFromBinary * @covers SecurityLib\BaseConverter::baseConvert * @dataProvider provideConvertToFromBinary */ public function testConvertToAndFromBinary($str, $from) { return false; $result1 = BaseConverter::convertFromBinary($str, $from); $result = BaseConverter::convertToBinary($result1, $from); $this->assertEquals($str, $result); } /** * @covers SecurityLib\BaseConverter::baseConvert * @expectedException InvalidArgumentException */ public function testBaseConvertFailure() { BaseConverter::baseConvert(array(1), 1, 1); } }