function dfpBaseTest::assertPropertyNotSet in Doubleclick for Publishers (DFP) 7
Same name and namespace in other branches
- 7.2 tests/dfp.test \dfpBaseTest::assertPropertyNotSet()
Assert that a property is not being set.
1 call to dfpBaseTest::assertPropertyNotSet()
File
- tests/
dfp_base.test, line 125 - Base test file for DFP module.
Class
- dfpBaseTest
- @file Base test file for DFP module.
Code
function assertPropertyNotSet($property, $key, $val) {
$pattern = '|' . '.set' . $property . '\\("' . $key . '",{1}\\s(.)*' . addslashes($val) . '|';
$this
->assertNoPattern($pattern, 'A ' . $property . ' property was not set for ' . $key . ' = ' . $val);
}