@@ -79,6 +79,20 @@ public function testISeeBeforeFails(): void
7979 $ this ->htmlContext ->iSeeBefore ('World ' , 'Hello ' );
8080 }
8181
82+ public function testISeeBeforeNotFound1 (): void
83+ {
84+ $ this ->setDom ('<p>Hello World</p> ' );
85+ $ this ->expectExceptionMessage ('"Me" not found ' );
86+ $ this ->htmlContext ->iSeeBefore ('Me ' , 'World ' );
87+ }
88+
89+ public function testISeeBeforeNotFound2 (): void
90+ {
91+ $ this ->setDom ('<p>Hello World</p> ' );
92+ $ this ->expectExceptionMessage ('"Me" not found ' );
93+ $ this ->htmlContext ->iSeeBefore ('Hello ' , 'Me ' );
94+ }
95+
8296 public function testISeeATag (): void
8397 {
8498 $ this ->setDom ('<a href="/test"></a> ' );
@@ -103,6 +117,22 @@ public function testISeeATagWithContentComplex(): void
103117 $ this ->htmlContext ->iSeeATag ('a ' , $ table , 'Hello World ' );
104118 }
105119
120+ public function testISeeATagWithDifferentQuotes (): void
121+ {
122+ $ this ->setDom ('<span text="Hello "World'"></span> ' );
123+ $ table = new TableNode ([0 => ['text ' , 'Hello "World \'' ]]);
124+ $ this ->expectNotToPerformAssertions ();
125+ $ this ->htmlContext ->iSeeATag ('span ' , $ table );
126+ }
127+
128+ public function testISeeATagWithSingleQuote (): void
129+ {
130+ $ this ->setDom ('<span text="Hello "World""></span> ' );
131+ $ table = new TableNode ([0 => ['text ' , 'Hello "World" ' ]]);
132+ $ this ->expectNotToPerformAssertions ();
133+ $ this ->htmlContext ->iSeeATag ('span ' , $ table );
134+ }
135+
106136 public function testISeeATagFails (): void
107137 {
108138 $ this ->setDom ('<a href="/test">Hello World</a> ' );
0 commit comments