Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Add missing license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Jun 19, 2014
1 parent 785e63d commit 2f5301b
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 72 deletions.
21 changes: 20 additions & 1 deletion tests/library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
#=============================================================================
# MIDAS Server
# Copyright (c) Kitware SAS. 26 rue Louis Guérin. 69100 Villeurbanne, FRANCE
# All rights reserved.
# More information http://www.kitware.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================

if(NOT WIN32)
# This test is not designed to work on windows for some reason
add_midas_test( KWUtils KWUtilsTest.php )
endif()

# Style
add_midas_style_test( StyleKWUtils ${CMAKE_SOURCE_DIR}/library/KWUtils.php )
add_midas_style_test( StyleKWUtilsTest ${CMAKE_SOURCE_DIR}/tests/library/KWUtilsTest.php )
add_midas_style_test( StyleKWUtilsTest ${CMAKE_SOURCE_DIR}/tests/library/KWUtilsTest.php )
31 changes: 17 additions & 14 deletions tests/library/KWUtilsTest.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
<?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
69328 Lyon, FRANCE.
See Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
MIDAS Server
Copyright (c) Kitware SAS. 26 rue Louis Guérin. 69100 Villeurbanne, FRANCE
All rights reserved.
More information http://www.kitware.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0.txt
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/

require_once BASE_PATH.'/library/KWUtils.php';
require_once BASE_PATH.'/core/controllers/components/UtilityComponent.php';
/**
* KWUtils tests
*/


/** KWUtils tests */
class KWUtilsTest extends ControllerTestCase
{

/** tests mkDir function */
public function testMkDir()
{
Expand Down Expand Up @@ -226,5 +230,4 @@ public function testRecursiveRemoveDirectory()
KWUtils::recursiveRemoveDirectory($testParentDir);
$this->assertFalse(file_exists($testParentDir));
}

}
21 changes: 20 additions & 1 deletion tests/library/MIDASStyleChecker.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 26 rue Louis Guérin. 69100 Villeurbanne, FRANCE
All rights reserved.
More information http://www.kitware.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0.txt
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/

$src = false;

for($i = 1; $i < $_SERVER['argc']; $i++)
Expand Down Expand Up @@ -40,7 +59,7 @@
}

function _getMatchingFilesRecursive($src, $dir = '')
{
{
$files = array();
if(!is_dir($src))
{
Expand Down
56 changes: 0 additions & 56 deletions tests/library/PHP/Token/Exception.php

This file was deleted.

0 comments on commit 2f5301b

Please sign in to comment.