Exemple #1
0
 /**
  * read() should return true if $string is not empty
  */
 public function test_read_returnsTrue_ifStringIsNotEmpty()
 {
     $string = '\\cxds ing';
     $snippet = new Snippet();
     $expected = (new Renderer())->render((new Element\Group())->appendChild(new Element\Control\Word\Cxds())->appendChild(new Element\Text('ing')));
     $this->assertTrue($snippet->read($string));
     $this->assertEquals($expected->getChildren(), $snippet->getChildren());
     return;
 }