eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/Compound/CompoundAndTest.php 1 location
|
@@ 318-329 (lines=12) @@
|
| 315 |
|
} |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
public function testSerialize() |
| 319 |
|
{ |
| 320 |
|
$matcher = new LogicalAnd(array()); |
| 321 |
|
$matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar'))); |
| 322 |
|
$sa = new SiteAccess('test', 'test', $matcher); |
| 323 |
|
$serializedSA1 = serialize($sa); |
| 324 |
|
|
| 325 |
|
$matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar/baz'))); |
| 326 |
|
$serializedSA2 = serialize($sa); |
| 327 |
|
|
| 328 |
|
$this->assertSame($serializedSA1, $serializedSA2); |
| 329 |
|
} |
| 330 |
|
} |
| 331 |
|
|
eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/Compound/CompoundOrTest.php 1 location
|
@@ 323-334 (lines=12) @@
|
| 320 |
|
} |
| 321 |
|
} |
| 322 |
|
|
| 323 |
|
public function testSerialize() |
| 324 |
|
{ |
| 325 |
|
$matcher = new LogicalOr(array()); |
| 326 |
|
$matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar'))); |
| 327 |
|
$sa = new SiteAccess('test', 'test', $matcher); |
| 328 |
|
$serializedSA1 = serialize($sa); |
| 329 |
|
|
| 330 |
|
$matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar/baz'))); |
| 331 |
|
$serializedSA2 = serialize($sa); |
| 332 |
|
|
| 333 |
|
$this->assertSame($serializedSA1, $serializedSA2); |
| 334 |
|
} |
| 335 |
|
} |
| 336 |
|
|
eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/RouterURIElement2Test.php 1 location
|
@@ 216-227 (lines=12) @@
|
| 213 |
|
$this->assertNull($matcher->reverseMatch('another_siteaccess_again_dont_tell_me')); |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
public function testSerialize() |
| 217 |
|
{ |
| 218 |
|
$matcher = new URIElementMatcher(array(2)); |
| 219 |
|
$matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar'))); |
| 220 |
|
$sa = new SiteAccess('test', 'test', $matcher); |
| 221 |
|
$serializedSA1 = serialize($sa); |
| 222 |
|
|
| 223 |
|
$matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar/baz'))); |
| 224 |
|
$serializedSA2 = serialize($sa); |
| 225 |
|
|
| 226 |
|
$this->assertSame($serializedSA1, $serializedSA2); |
| 227 |
|
} |
| 228 |
|
} |
| 229 |
|
|
eZ/Publish/Core/MVC/Symfony/SiteAccess/Tests/RouterURIElementTest.php 1 location
|
@@ 188-199 (lines=12) @@
|
| 185 |
|
); |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
public function testSerialize() |
| 189 |
|
{ |
| 190 |
|
$matcher = new URIElementMatcher(array(1)); |
| 191 |
|
$matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar'))); |
| 192 |
|
$sa = new SiteAccess('test', 'test', $matcher); |
| 193 |
|
$serializedSA1 = serialize($sa); |
| 194 |
|
|
| 195 |
|
$matcher->setRequest(new SimplifiedRequest(array('pathinfo' => '/foo/bar/baz'))); |
| 196 |
|
$serializedSA2 = serialize($sa); |
| 197 |
|
|
| 198 |
|
$this->assertSame($serializedSA1, $serializedSA2); |
| 199 |
|
} |
| 200 |
|
} |
| 201 |
|
|