Skip to content

Commit 06dc131

Browse files
committed
Updated License, composer changes, moved tests.
1 parent aaf3132 commit 06dc131

File tree

6 files changed

+25
-37
lines changed

6 files changed

+25
-37
lines changed

LICENSE

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
1-
Copyright (c) 2011, Dragonfly Development Inc
2-
All rights reserved.
1+
Copyright (c) 2012 Dragonfly Development Inc.
32

4-
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are met:
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
69

7-
* Redistributions of source code must retain the above copyright notice,
8-
this list of conditions and the following disclaimer.
9-
* Redistributions in binary form must reproduce the above copyright
10-
notice, this list of conditions and the following disclaimer in the
11-
documentation and/or other materials provided with the distribution.
12-
* Neither the name of Dragonfly Development Inc nor the names of its
13-
contributors may be used to endorse or promote products derived from
14-
this software without specific prior written permission.
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
1512

16-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19-
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20-
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26-
POSSIBILITY OF SUCH DAMAGE.
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"type": "library",
44
"description": "Given a deep data structure, access data by dot notation.",
55
"homepage": "https://github.com/dflydev/dflydev-dot-access-data",
6-
"keywords": ["dot", "access", "data", "notation", "config", "yaml", "yml"],
7-
"license": "New BSD License",
6+
"keywords": ["dot", "access", "data", "notation"],
7+
"license": "MIT",
88
"authors": [
99
{
1010
"name": "Dragonfly Development Inc.",

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<phpunit colors="true" bootstrap="tests/bootstrap.php">
33
<testsuites>
44
<testsuite name="Dot Access Data Test Suite">
5-
<directory>./tests/Dflydev/Tests/DotAccessData</directory>
5+
<directory>./tests/Dflydev/DotAccessData</directory>
66
</testsuite>
77
</testsuites>
88

tests/Dflydev/Tests/DotAccessData/DataTest.php renamed to tests/Dflydev/DotAccessData/DataTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Dflydev\Tests\DotAccessData;
13-
14-
use Dflydev\DotAccessData\Data;
15-
use Dflydev\DotAccessData\DataInterface;
12+
namespace Dflydev\DotAccessData;
1613

1714
class DataTest extends \PHPUnit_Framework_TestCase
1815
{
@@ -186,4 +183,4 @@ public function testExport()
186183

187184
$this->assertEquals($this->getSampleData(), $data->export());
188185
}
189-
}
186+
}

tests/Dflydev/Tests/DotAccessData/UtilTest.php renamed to tests/Dflydev/DotAccessData/UtilTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Dflydev\Tests\DotAccessData;
13-
14-
use Dflydev\DotAccessData\Util;
12+
namespace Dflydev\DotAccessData;
1513

1614
class UtilTest extends \PHPUnit_Framework_TestCase
1715
{
@@ -120,4 +118,4 @@ public function mergeAssocArrayProvider()
120118
),
121119
);
122120
}
123-
}
121+
}

tests/bootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
$loader = require dirname(__DIR__).'/vendor/.composer/autoload.php';
13-
$loader->add('Dflydev\\Tests\\DotAccessData', 'tests');
12+
$loader = require dirname(__DIR__).'/vendor/autoload.php';
13+

0 commit comments

Comments
 (0)