/** * @dataProvider usesClassDataProvider */ public function testUsesClass($usage, $typedef, $expected) { $class = new PhpClass(); $class->addUseStatement($usage); $this->assertEquals($class->uses($typedef), $expected); }