www.gusucode.com > Elgg PHP开源SNS系统 V1.12.5源码程序 > elgg-1.12.5/engine/tests/phpunit/ElggObjectTest.php
<?php class ElggObjectTest extends \PHPUnit_Framework_TestCase { protected function setUp() { // required by \ElggEntity when setting the owner/container _elgg_services()->setValue('session', \ElggSession::getMock()); } public function testCanConstructWithoutArguments() { $this->assertNotNull(new \ElggObject()); } }