assertEquals($expect, $helper->validateAnimalName($input)); } public function test_isInPath() { /** @var helper_plugin_farmer $helper */ $helper = plugin_load('helper', 'farmer'); $this->assertTrue($helper->isInPath('/var/www/foo', '/var/www')); $this->assertFalse($helper->isInPath('/var/www/../foo', '/var/www')); } }