Exemplo n.º 1
0
 public function testMacrosCantConflictBetweenTypes()
 {
     String::extend('foobar', function () {
         return 'string';
     });
     Arrays::extend('foobar', function () {
         return 'arrays';
     });
     $this->assertEquals('string', String::foobar());
     $this->assertEquals('arrays', Arrays::foobar());
 }