/** * @requires PHP 5.4 */ public function testTraits() { spl_autoload_call('SebastianBergmann\\GlobalState\\TestFixture\\SnapshotTrait'); $snapshot = new Snapshot($this->getBlacklist(), false, false, false, false, false, false, true, false, false); $this->assertContains('SebastianBergmann\\GlobalState\\TestFixture\\SnapshotTrait', $snapshot->traits()); }