public function testHasShortcode() { $manager = new ShortcodeManager(array('foo' => new SimpleShortcode('foo'), 'bar' => new SimpleShortcode('bar'), 'baz' => new SimpleShortcode('baz'))); $this->assertTrue($manager->hasShortcode('[foo]')); $this->assertTrue($manager->hasShortcode('[foo][bar/][foo]', 'bar')); $this->assertFalse($manager->hasShortcode('[foo]', 'bar')); }