/** * Test text formatting */ public function testformatMessage() { $this->assertEquals(\notifyy\Notifyable::SUCCESS, $this->_object->formatMessage(\notifyy\Notifyable::SUCCESS)); $sTest = implode(array_fill(0, 1024, 'A')); $this->assertEquals(256, strlen($this->_object->formatMessage($sTest))); //$sTest = 'Test \033[32mdone\033[0m Test \033[32;12mdone\033[0m'; //$this->assertEquals('Test done Test done', $this->_object->formatMessage($sTest)); }