function dfpBaseTest::assertPropertyNotSet in Doubleclick for Publishers (DFP) 7.2
Same name and namespace in other branches
- 7 tests/dfp_base.test \dfpBaseTest::assertPropertyNotSet()
Assert that a property is not being set.
1 call to dfpBaseTest::assertPropertyNotSet()
- dfpDisplayTagTest::testTargeting in tests/
dfp.test
File
- tests/
dfp.test, line 125 - Test file for DFP module.
Class
- dfpBaseTest
- @file 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);
}