Skip to content

Commit

Permalink
#135 correcting test that is no longer needed - runtime is_callable
Browse files Browse the repository at this point in the history
… check is replaced by hint
  • Loading branch information
Ocramius committed Jul 22, 2017
1 parent 8de0ebc commit 06d8979
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ public function testRegisterAutoloadNamespaces()

/**
* @runInSeparateProcess
*
* @expectedException \InvalidArgumentException
* @expectedExceptionMessage A callable is expected in AnnotationRegistry::registerLoader().
*/
public function testRegisterLoaderNoCallable()
{
AnnotationRegistry::registerLoader('test');
$this->expectException(\TypeError::class);

AnnotationRegistry::registerLoader('test' . random_int(10, 10000));
}

protected function setStaticField($class, $field, $value)
Expand Down

0 comments on commit 06d8979

Please sign in to comment.