Definition at line 10 of file FactoriesCrawlerTest.php.
◆ setUp()
FactoriesCrawlerTest::setUp |
( |
| ) |
|
|
protected |
◆ testAccessInvalidEntry()
FactoriesCrawlerTest::testAccessInvalidEntry |
( |
| ) |
|
- Exceptions
-
Definition at line 28 of file FactoriesCrawlerTest.php.
References Vendor\Package\$e.
31 $entries = $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/ComponentsTreeFixture/RootFactory.php");
32 $entries->getEntryById(
"NonExistent")->getChildren();
33 $entries->getParentsOfEntry(
"NonExistent");
34 $this->assertFalse(
"This should not happen");
36 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::INVALID_ID);
◆ testIdenticalEntriesFactory()
FactoriesCrawlerTest::testIdenticalEntriesFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 82 of file FactoriesCrawlerTest.php.
References Vendor\Package\$e.
85 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/IdenticalEntriesFactory.php");
86 $this->assertFalse(
"This should not happen");
88 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::DUPLICATE_ENTRY);
◆ testIdenticalNamesFactory()
FactoriesCrawlerTest::testIdenticalNamesFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 73 of file FactoriesCrawlerTest.php.
75 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/IdenticalNamesFactory.php");
76 $this->assertTrue(
true);
◆ testLoopFactory()
FactoriesCrawlerTest::testLoopFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 58 of file FactoriesCrawlerTest.php.
References Vendor\Package\$e.
61 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/LoopFactory.php");
63 $this->assertFalse(
"This should not happen");
65 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::CRAWL_MAX_NESTING_REACHED);
◆ testNoClosingDescriptionFactory()
FactoriesCrawlerTest::testNoClosingDescriptionFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 108 of file FactoriesCrawlerTest.php.
References Vendor\Package\$e.
111 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/NoClosingDescriptionFactory.php");
113 $this->assertFalse(
"This should not happen");
115 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::ENTRY_WITH_NO_YAML_DESCRIPTION);
◆ testNoNamespaceFactory()
FactoriesCrawlerTest::testNoNamespaceFactory |
( |
| ) |
|
- Exceptions
-
Definition at line 95 of file FactoriesCrawlerTest.php.
References Vendor\Package\$e.
98 $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/NoNamespaceFactory.php");
99 $this->assertFalse(
"This should not happen");
101 $this->assertEquals($e->getCode(), Crawler\Exception\CrawlerException::ENTRY_WITH_NO_VALID_RETURN_STATEMENT);
◆ testParseValidFile()
FactoriesCrawlerTest::testParseValidFile |
( |
| ) |
|
- Exceptions
-
Definition at line 43 of file FactoriesCrawlerTest.php.
45 $entries = $this->crawler->crawlFactory(
"tests/UI/Crawler/Fixture/ComponentsTreeFixture/RootFactory.php");
46 $this->assertEquals(6, count($entries));
48 $this->assertEquals(2, count($entries->getEntryById(
"testsUICrawlerFixtureComponentsTreeFixtureComponent1FactoryComponent1")->getChildren()));
49 $this->assertEquals(3, count($entries->getDescendantsOfEntry(
"testsUICrawlerFixtureComponentsTreeFixtureComponent1FactoryComponent1")));
50 $this->assertEquals(1, count($entries->getEntryById(
"testsUICrawlerFixtureComponentsTreeFixtureComponent2FactoryComponent2")->getChildren()));
51 $this->assertEquals(0, count($entries->getParentsOfEntry(
"testsUICrawlerFixtureComponentsTreeFixtureComponent1FactoryComponent1")));
52 $this->assertEquals(2, count($entries->getParentsOfEntry(
"testsUICrawlerFixtureComponentsTreeFixtureComponent1component12component121Component121")));
◆ $crawler
FactoriesCrawlerTest::$crawler |
|
protected |
The documentation for this class was generated from the following file: