Example #1
0
 /**
  * Test that macros aren't shared between classes.
  */
 public function testInheritance()
 {
     $this->assertFalse(Format::hasMethod('foobar'));
     $this->assertFalse(Path::hasMethod('foobar'));
     Format::macro('foobar', function () {
     });
     $this->assertTrue(Format::hasMethod('foobar'));
     $this->assertFalse(Path::hasMethod('foobar'));
 }