Added tests for traits
parent
d8cdaf8169
commit
81e8261692
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
namespace {
|
||||
trait TFoo {
|
||||
|
||||
}
|
||||
|
||||
class CFoo {
|
||||
use TFoo;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Foo {
|
||||
trait TBar {
|
||||
|
||||
}
|
||||
|
||||
interface IBar {
|
||||
|
||||
}
|
||||
|
||||
trait TFooBar {
|
||||
|
||||
}
|
||||
|
||||
class CBar implements IBar {
|
||||
use TBar, TFooBar;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue