setDbConnection($conn); } function testFindByPk() { $user1 = UserRecord::finder()->findByPk('admin'); $this->assertNotNull($user1); } function logger($sender, $param) { //var_dump($param); } }