public function test01() { ### contains($needles, $haystack) $this->assertTrue(Util::string_has('this exists', 'Testing to see if this exists.')); $this->assertFalse(Util::string_has('this does not exist', 'Testing to see if this exists.')); ### slug_to_title($slug) $this->assertEquals('Imagine That This Is A Slug', Util::slug_to_title('imagine-that-this-is-a-slug')); ### remove_namespace($class_name, $class_suffix = NULL) $this->assertEquals('Routing', Util::remove_namespace(\Og\Routing::class)); $this->assertEquals('Routing', Util::remove_namespace(\Og\Routing::class, 'Og')); ### name_from_class($class_name, $suffix_to_remove = 'HttpController') $this->assertEquals('applicationcontroller', Util::alias_from_class('Og\\ApplicationController', '')); $this->assertEquals('application', Util::alias_from_class('Og\\ApplicationController', 'Controller')); $this->assertEquals('application', Util::alias_from_class('Og\\ApplicationController')); }