load files from extensions folder for tests; added new property in worthless_test

This commit is contained in:
Susann Sgorzaly
2018-02-14 12:12:53 +01:00
parent d788135bbe
commit 8ec87126dc
2 changed files with 15 additions and 2 deletions

View File

@@ -107,7 +107,8 @@ class worthless_properties_Test extends PHPUnit\Framework\TestCase {
'error',
'error_info',
'titles',
'data'
'data',
'data_types',
);
// Find our real properties
@@ -129,7 +130,8 @@ class worthless_properties_Test extends PHPUnit\Framework\TestCase {
public function test_count_public_properties() {
$counter = 0;
for ($a = 0; $a < count($this->properties); $a++) {
$propertiesCount = count($this->properties);
for ($a = 0; $a < $propertiesCount; $a++) {
if ($this->properties[$a]->isPublic() === true) {
$counter++;
}