芝麻web文件管理V1.00
编辑当前文件:/home/strato/chroot/opt/RZphp80/includes/test/MIME_Type/tests/MIME_Type_ParameterTest.php
assertTrue( MIME_Type_Parameter::hasComment( 'a="parameter" (with a comment)' ) ); $this->assertTrue( MIME_Type_Parameter::hasComment( 'param=foo(with a comment)' ) ); } public function testHasCommentNegative() { $this->assertFalse( MIME_Type_Parameter::hasComment( 'a="parameter"' ) ); $this->assertFalse( MIME_Type_Parameter::hasComment( 'foo=bar' ) ); } public function testGetComment() { $this->assertEquals( 'with a comment', MIME_Type_Parameter::getComment( 'a="parameter" (with a comment)' ) ); } public function testGetCommentNone() { $this->assertEquals( '', MIME_Type_Parameter::getComment( 'a="parameter"' ) ); } } ?>