Definition at line 10 of file FactoriesCrawlerTest.php.
◆ setUp()
FactoriesCrawlerTest::setUp |
( |
| ) |
|
|
protected |
◆ testAccessInvalidEntry()
FactoriesCrawlerTest::testAccessInvalidEntry |
( |
| ) |
|
- Exceptions
-
Definition at line 26 of file FactoriesCrawlerTest.php.
28 $entries = $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/ComponentsTreeFixture/RootFactory.php");
29 $entries->getEntryById(
"NonExistent")->getChildren();
30 $entries->getParentsOfEntry(
"NonExistent");
31 $this->assertFalse(
"This should not happen");
34 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::INVALID_ID);
◆ testIdenticalEntriesFactory()
FactoriesCrawlerTest::testIdenticalEntriesFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 79 of file FactoriesCrawlerTest.php.
81 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/IdenticalEntriesFactory.php");
82 $this->assertFalse(
"This should not happen");
85 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::DUPLICATE_ENTRY);
◆ testIdenticalNamesFactory()
FactoriesCrawlerTest::testIdenticalNamesFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 71 of file FactoriesCrawlerTest.php.
72 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/IdenticalNamesFactory.php");
73 $this->assertTrue(
true);
◆ testLoopFactory()
FactoriesCrawlerTest::testLoopFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 56 of file FactoriesCrawlerTest.php.
58 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/LoopFactory.php");
60 $this->assertFalse(
"This should not happen");
63 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::CRAWL_MAX_NESTING_REACHED);
◆ testNoClosingDescriptionFactory()
FactoriesCrawlerTest::testNoClosingDescriptionFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 106 of file FactoriesCrawlerTest.php.
108 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/NoClosingDescriptionFactory.php");
110 $this->assertFalse(
"This should not happen");
113 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::ENTRY_WITH_NO_YAML_DESCRIPTION);
◆ testNoNamespaceFactory()
FactoriesCrawlerTest::testNoNamespaceFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 92 of file FactoriesCrawlerTest.php.
94 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/NoNamespaceFactory.php");
95 $this->assertFalse(
"This should not happen");
98 $this->assertEquals($e->getCode(),Crawler\Exception\CrawlerException::ENTRY_WITH_NO_VALID_RETURN_STATEMENT);
◆ testParseValidFile()
FactoriesCrawlerTest::testParseValidFile |
( |
| ) |
|
- Exceptions
-
Definition at line 41 of file FactoriesCrawlerTest.php.
42 $entries = $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/ComponentsTreeFixture/RootFactory.php");
43 $this->assertEquals(6,count($entries));
45 $this->assertEquals(2,count($entries->getEntryById(
"testsUICrawlerFixtureComponentsTreeFixtureComponent1FactoryComponent1")->getChildren()));
46 $this->assertEquals(3,count($entries->getDescendantsOfEntry(
"testsUICrawlerFixtureComponentsTreeFixtureComponent1FactoryComponent1")));
47 $this->assertEquals(1,count($entries->getEntryById(
"testsUICrawlerFixtureComponentsTreeFixtureComponent2FactoryComponent2")->getChildren()));
48 $this->assertEquals(0,count($entries->getParentsOfEntry(
"testsUICrawlerFixtureComponentsTreeFixtureComponent1FactoryComponent1")));
49 $this->assertEquals(2,count($entries->getParentsOfEntry(
"testsUICrawlerFixtureComponentsTreeFixtureComponent1component12component121Component121")));
◆ $crawler
FactoriesCrawlerTest::$crawler |
|
protected |
The documentation for this class was generated from the following file: