Changeset 695 for trunk/tests


Ignore:
Timestamp:
Aug 8, 2019 10:01:13 PM (5 years ago)
Author:
anonymous
Message:

Change usage of is_a($x, 'X') to $x instance of X

Location:
trunk/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/LockTest.php

    r541 r695  
    102102    {
    103103        $result = Lock::getinstance($this->Auth_SQL);
    104         $this->assertTrue($result && is_a($result, 'Lock'));
     104        $this->assertTrue($result && $result instanceof \Lock);
    105105    }
    106106
  • trunk/tests/VersionTest.php

    r479 r695  
    44 * For details visit the project site: <http://trac.strangecode.com/codebase/>
    55 * Copyright 2001-2012 Strangecode, LLC
    6  * 
     6 *
    77 * This file is part of The Strangecode Codebase.
    88 *
     
    1111 * Free Software Foundation, either version 3 of the License, or (at your option)
    1212 * any later version.
    13  * 
     13 *
    1414 * The Strangecode Codebase is distributed in the hope that it will be useful, but
    1515 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1616 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1717 * details.
    18  * 
     18 *
    1919 * You should have received a copy of the GNU General Public License along with
    2020 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
     
    3737
    3838    function setUp()
    39     {   
     39    {
    4040        require dirname(__FILE__) . '/_config.inc.php';
    4141        require_once '../lib/Version.inc.php';
     
    8484    {
    8585        $db =& DB::getInstance();
    86    
     86
    8787        unset($this->Version);
    8888        unset($this->Auth_SQL);
     
    9595    {
    9696        $result = Version::getinstance($this->Auth_SQL);
    97         $this->assertTrue($result && is_a($result, 'Version'));
     97        $this->assertTrue($result && $result instanceof Version);
    9898    }
    9999
Note: See TracChangeset for help on using the changeset viewer.