public function testStrip() { $text = '__Some__ *random* text'; $strippedText = 'Some random text'; $this->parsedown->expects($this->once())->method('strip')->with($text)->willReturn($strippedText); $result = $this->extension->strip($text); $this->assertSame($strippedText, $result); }
/** * @param string $text * * @return string */ public function strip($text) { return $this->parser->strip($text); }