public function testNotMatchChildOnlyById() { $element = $this->xpath->query('//doc:para')->item(0); $directive = new ezcDocumentPcssLayoutDirective(array('#paragraph_with_inline_markup'), array()); $this->assertEquals(false, (bool) preg_match($regexp = $directive->getRegularExpression(), $id = $element->getLocationId()), "Directive {$regexp} was expected to NOT match elements location id: \"{$id}\"."); }