PyStringNodeTest.php 571 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Tests\Behat\Gherkin\Node;
  3. use Behat\Gherkin\Node\PyStringNode;
  4. class PyStringNodeTest extends \PHPUnit_Framework_TestCase
  5. {
  6. public function testGetStrings()
  7. {
  8. $str = new PyStringNode(array('line1', 'line2', 'line3'), 0);
  9. $this->assertEquals(array('line1', 'line2', 'line3'), $str->getStrings());
  10. }
  11. public function testGetRaw()
  12. {
  13. $str = new PyStringNode(array('line1', 'line2', 'line3'), 0);
  14. $expected = <<<STR
  15. line1
  16. line2
  17. line3
  18. STR;
  19. $this->assertEquals($expected, $str->getRaw());
  20. }
  21. }