assertEquals( '', ( new MMLbase( 'test' ) )->getEmpty() ); } public function testEnd() { $this->assertEquals( '', ( new MMLbase( 'test' ) )->getEnd() ); } public function testEncapsulate() { $this->assertEquals( '<script>alert(document.cookies);</script>', ( new MMLbase( 'test' ) ) ->encapsulate( '' ) ); } public function testEncapsulateRaw() { $this->assertEquals( '', ( new MMLbase( 'test' ) ) ->encapsulateRaw( '' ) ); } public function testAttributes() { $this->assertEquals( '', ( new MMLbase( 'test', 'texClass1', [ TAG::CLASSTAG => 'texClass2', 'a' => 'b' ] ) ) ->getStart() ); } public function testName() { $this->assertEquals( 'test', ( new MMLbase( 'test' ) )->name() ); } }