ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ExamplesYamlParserTest Class Reference
+ Inheritance diagram for ExamplesYamlParserTest:
+ Collaboration diagram for ExamplesYamlParserTest:

Public Member Functions

 testProperEntry ()
 
 testMissingBoundaries ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

Crawler EntriesYamlParser $parser
 

Detailed Description

Definition at line 24 of file ExamplesYamlParserTest.php.

Member Function Documentation

◆ setUp()

ExamplesYamlParserTest::setUp ( )
protected

Definition at line 28 of file ExamplesYamlParserTest.php.

28 : void
29 {
30 $this->parser = new class () extends Crawler\ExamplesYamlParser {
31 public function _getYamlEntriesFromString(string $content): array
32 {
33 return $this->getYamlEntriesFromString($content);
34 }
35 };
36 }

◆ testMissingBoundaries()

ExamplesYamlParserTest::testMissingBoundaries ( )

Definition at line 61 of file ExamplesYamlParserTest.php.

70 : void

◆ testProperEntry()

ExamplesYamlParserTest::testProperEntry ( )

Definition at line 38 of file ExamplesYamlParserTest.php.

38 : void
39 {
40 $doc = <<<EOT
41 some other code here
42
54 function something()
55 {
56 }
57EOT;
58 $expected = [
59 'description' => "\nExample showing...",

Field Documentation

◆ $parser

Crawler EntriesYamlParser ExamplesYamlParserTest::$parser
protected

Definition at line 26 of file ExamplesYamlParserTest.php.


The documentation for this class was generated from the following file: