MessageTest

The Yoast SEO MessageTest class.

Defined (1)

The class is defined in the following location(s).

/vendor/yoast/whip/tests/MessageTest.php  
  1. class MessageTest extends PHPUnit_Framework_TestCase { 
  2. public function testMessageHasBody() { 
  3. $message = new Whip_BasicMessage( 'This is a message' ); 
  4.  
  5. $this->assertNotEmpty($message->body()); 
  6.  
  7. /** 
  8. * @expectedException Whip_EmptyProperty 
  9. */ 
  10. public function testMessageCannotBeEmpty() { 
  11. new Whip_BasicMessage( '' ); 
  12.  
  13. /** 
  14. * @expectedException Whip_InvalidType 
  15. */ 
  16. public function testMessageMustBeString() { 
  17. new Whip_BasicMessage( 123 );