Changeset 695 for trunk/tests
- Timestamp:
- Aug 8, 2019 10:01:13 PM (5 years ago)
- Location:
- trunk/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/LockTest.php
r541 r695 102 102 { 103 103 $result = Lock::getinstance($this->Auth_SQL); 104 $this->assertTrue($result && is_a($result, 'Lock'));104 $this->assertTrue($result && $result instanceof \Lock); 105 105 } 106 106 -
trunk/tests/VersionTest.php
r479 r695 4 4 * For details visit the project site: <http://trac.strangecode.com/codebase/> 5 5 * Copyright 2001-2012 Strangecode, LLC 6 * 6 * 7 7 * This file is part of The Strangecode Codebase. 8 8 * … … 11 11 * Free Software Foundation, either version 3 of the License, or (at your option) 12 12 * any later version. 13 * 13 * 14 14 * The Strangecode Codebase is distributed in the hope that it will be useful, but 15 15 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 17 * details. 18 * 18 * 19 19 * You should have received a copy of the GNU General Public License along with 20 20 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. … … 37 37 38 38 function setUp() 39 { 39 { 40 40 require dirname(__FILE__) . '/_config.inc.php'; 41 41 require_once '../lib/Version.inc.php'; … … 84 84 { 85 85 $db =& DB::getInstance(); 86 86 87 87 unset($this->Version); 88 88 unset($this->Auth_SQL); … … 95 95 { 96 96 $result = Version::getinstance($this->Auth_SQL); 97 $this->assertTrue($result && is_a($result, 'Version'));97 $this->assertTrue($result && $result instanceof Version); 98 98 } 99 99
Note: See TracChangeset
for help on using the changeset viewer.