public function testValidatingThreadPath() { $this->assertEquals(false, set::isValidThreadPath(false)); $this->assertEquals(false, set::isValidThreadPath(array())); $this->assertEquals(false, set::isValidThreadPath('')); $this->assertEquals(true, set::isValidThreadPath('1')); $this->assertEquals(true, set::isValidThreadPath('context')); $this->assertEquals(true, set::isValidThreadPath('context.threads')); $this->assertEquals(true, set::isValidThreadPath('context.threads.active.newsreader.pid')); $this->assertEquals(true, set::isValidThreadPath('context.threads.active.newsreader.pid.200')); $this->assertEquals(false, set::isValidThreadPath('.1')); $this->assertEquals(false, set::isValidThreadPath('1.')); $this->assertEquals(false, set::isValidThreadPath('.1.')); $this->assertEquals(false, set::isValidThreadPath('1.2..3')); }