Definition at line 10 of file EntriesYamlParserTest.php.
◆ setUp()
◆ testCamelCase()
CrawlerTest::testCamelCase |
( |
| ) |
|
Definition at line 95 of file EntriesYamlParserTest.php.
96 $test_string =
"Hello Camel Case";
98 $this->assertEquals(
"helloCamelCase",
Crawler\EntriesYamlParser::toLowerCamelCase($test_string,
' '));
99 $this->assertEquals(
"HelloCamelCase",
Crawler\EntriesYamlParser::toUpperCamelCase($test_string,
' '));
◆ testGenerateEntry()
CrawlerTest::testGenerateEntry |
( |
| ) |
|
- Exceptions
-
Definition at line 106 of file EntriesYamlParserTest.php.
107 $entries = $this->parser->parseEntriesFromFile(
"tests/UI/Crawler/Fixture/ProperEntry.php");
109 $this->assertEquals(1,count($entries));
110 $this->assertEquals(
"CrawlerFixtureProperEntryProperEntry",$entries->getEntryById(
"CrawlerFixtureProperEntryProperEntry")->getId());
111 $this->assertEquals(
"src/UI/Crawler/Fixture/ProperEntry",$entries->getEntryById(
"CrawlerFixtureProperEntryProperEntry")->getPath());
◆ testInvalidYamlEntry()
CrawlerTest::testInvalidYamlEntry |
( |
| ) |
|
- Exceptions
-
Definition at line 85 of file EntriesYamlParserTest.php.
87 $this->parser->parseArrayFromFile(
"tests/UI/Crawler/Fixture/InvalidYamlEntry.php");
88 $this->assertFalse(
"This should not happen");
91 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::PARSING_YAML_ENTRY_FAILED);
◆ testNoDescriptionEntry()
CrawlerTest::testNoDescriptionEntry |
( |
| ) |
|
- Exceptions
-
Definition at line 60 of file EntriesYamlParserTest.php.
62 $this->parser->parseYamlStringArrayFromFile(
"tests/UI/Crawler/Fixture/NoDescriptionEntry.php");
63 $this->assertFalse(
"This should not happen");
66 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::ENTRY_WITH_NO_YAML_DESCRIPTION);
◆ testNoReturnValueEntry()
CrawlerTest::testNoReturnValueEntry |
( |
| ) |
|
- Exceptions
-
Definition at line 72 of file EntriesYamlParserTest.php.
74 $this->parser->parseYamlStringArrayFromFile(
"tests/UI/Crawler/Fixture/NoReturnValueEntry.php");
75 $this->assertFalse(
"This should not happen");
78 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::ENTRY_WITH_NO_VALID_RETURN_STATEMENT);
◆ testParseInvalidFile()
CrawlerTest::testParseInvalidFile |
( |
| ) |
|
- Exceptions
-
Definition at line 32 of file EntriesYamlParserTest.php.
34 $this->parser->parseYamlStringArrayFromFile(
"Invalid Path");
35 $this->assertFalse(
"This should not happen");
38 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::INVALID_FILE_PATH);
◆ testParseProperEntryToArray()
CrawlerTest::testParseProperEntryToArray |
( |
| ) |
|
Definition at line 52 of file EntriesYamlParserTest.php.
53 $entries = $this->parser->parseArrayFromFile(
"tests/UI/Crawler/Fixture/ProperEntry.php");
54 $this->assertEquals($this->proper_entry->properEntryYamlArray,$entries);
◆ testParseProperEntryToYamlEntries()
CrawlerTest::testParseProperEntryToYamlEntries |
( |
| ) |
|
- Exceptions
-
Definition at line 45 of file EntriesYamlParserTest.php.
46 $yaml_entries = $this->parser->parseYamlStringArrayFromFile(
"tests/UI/Crawler/Fixture/ProperEntry.php");
48 $this->assertEquals($this->proper_entry->properEntryYamlString,$yaml_entries[0]);
49 $this->assertEquals($this->proper_entry->properEntryYamlString,$yaml_entries[0]);
◆ $parser
◆ $proper_entry
CrawlerTest::$proper_entry |
|
protected |
The documentation for this class was generated from the following file: