public function testFilesystem() { $fs = new \Notoj\Filesystem(array(__DIR__, __DIR__ . "/../lib/Notoj/Notoj.php", __DIR__ . "/xxx-yyy.php")); $this->assertEquals(1, count($fs->getClasses('Notoj'))); $this->assertEquals(1, count($fs->getMethods('something'))); }
public function testMethodVisibility() { $fs = new \Notoj\Filesystem(__DIR__); foreach ($fs->getMethods() as $method) { if ($method->isPublic()) { $this->assertNotEquals($method->isPublic(), $method->isProtected()); $this->assertNotEquals($method->isPublic(), $method->isPrivate()); } } }