8000 [Validator] Removed bogus test which fails on some systems · symfony/symfony@c99333e · GitHub
[go: up one dir, main page]

Skip to content

Commit c99333e

Browse files
committed
[Validator] Removed bogus test which fails on some systems
1 parent d0537e0 commit c99333e

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

src/Symfony/Component/Validator/Tests/Mapping/Loader/AbstractMethodStaticLoader.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Symfony/Component/Validator/Tests/Mapping/Loader/StaticMethodLoaderTest.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,29 +87,6 @@ public function testLoadClassMetadataInAbstractClasses()
8787

8888
$this->assertCount(1, $metadata->getConstraints());
8989
}
90-
91-
public function testLoadClassMetadataIgnoresAbstractMethods()
92-
{
93-
error_reporting(E_ALL | E_STRICT);
94-
95-
$loader = new StaticMethodLoader('loadMetadata');
96-
$caught = false;
97-
try {
98-
include __DIR__.'/AbstractMethodStaticLoader.php';
99-
} catch (\Exception $e) {
100-
// catching the PHP notice that is converted to an exception by PHPUnit
101-
$caught = true;
102-
}
103-
104-
if (!$caught) {
105-
$this->fail('AbstractMethodStaticLoader should produce a strict standard error.');
106-
}
107-
108-
$metadata = new ClassMetadata(__NAMESPACE__.'\AbstractMethodStaticLoader');
109-
$loader->loadClassMetadata($metadata);
110-
111-
$this->assertCount(0, $metadata->getConstraints());
112-
}
11390
}
11491

11592
interface StaticLoaderInterface

0 commit comments

Comments
 (0)
0