public function testStaticCore() { // Test that core() creates a core if none exists $this->assertInstanceOf('Woodling\\Core', Woodling::core()); // Test that core is set when passing it to `core()` Woodling::reset(); $core = new Core(); $this->assertSame($core, Woodling::core($core)); }