Chris@0: Chris@0: Chris@0: Chris@0: Chris@0: bar Chris@0: Chris@0: EOT; Chris@0: $test->_setRawContent($raw_content); Chris@0: $this->assertNotContains('foo', $test->_getTextContent()); Chris@0: $this->assertNotContains('', $test->_getTextContent()); Chris@0: $this->assertContains('bar', $test->_getTextContent()); Chris@0: } Chris@0: Chris@0: } Chris@0: Chris@0: class TestClass { Chris@0: use AssertContentTrait; Chris@0: Chris@0: public function _setRawContent($content) { Chris@0: $this->setRawContent($content); Chris@0: } Chris@0: Chris@0: public function _getTextContent() { Chris@0: return $this->getTextContent(); Chris@0: } Chris@0: Chris@0: }