Skip to content

Commit 957c467

Browse files
committed
Merge branch 'master' into newmaster
2 parents 81a00ed + 7b503c7 commit 957c467

File tree

6 files changed

+15
-22
lines changed

6 files changed

+15
-22
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/.travis.yml export-ignore
44
/.appveyor.yml export-ignore
55
/.travis.yml export-ignore
6+
/.vscode export-ignore
67
/codecov.yml export-ignore
78
/examples export-ignore
89
/phpunit.xml.dist export-ignore

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# **ezsql**
22

3-
[![Build Status](https://travis-ci.org/ezSQL/ezSQL.svg?branch=v4)](https://travis-ci.org/ezSQL/ezSQL)
4-
[![Build status](https://ci.appveyor.com/api/projects/status/6s8oqnoxa2i5k04f?svg=true)](https://ci.appveyor.com/project/jv2222/ezsql)
5-
[![codecov](https://codecov.io/gh/ezSQL/ezSQL/branch/v4/graph/badge.svg)](https://codecov.io/gh/ezSQL/ezSQL)
6-
[![Maintainability](https://api.codeclimate.com/v1/badges/0071eb99ab4f5ac5b1f2/maintainability)](https://codeclimate.com/github/ezSQL/ezSQL/maintainability)
3+
[![Build Status](https://travis-ci.org/ezSQL/ezSQL.svg?branch=master)](https://travis-ci.org/ezSQL/ezSQL)[![Build status](https://ci.appveyor.com/api/projects/status/6s8oqnoxa2i5k04f?svg=true)](https://ci.appveyor.com/project/jv2222/ezsql)[![Coverage Status](https://coveralls.io/repos/github/ezSQL/ezSQL/badge.svg?branch=master)](https://coveralls.io/github/ezSQL/ezSQL?branch=master)[![codecov](https://codecov.io/gh/ezSQL/ezSQL/branch/master/graph/badge.svg)](https://codecov.io/gh/ezSQL/ezSQL)[![Maintainability](https://api.codeclimate.com/v1/badges/0071eb99ab4f5ac5b1f2/maintainability)](https://codeclimate.com/github/ezSQL/ezSQL/maintainability)
74

85
***A class to make it very easy to deal with database connections.***
96

@@ -15,7 +12,7 @@ This library has an `Database` class, an combination of the [Factory](https://en
1512

1613
* More Todo...
1714

18-
For an full overview see [documentation Wiki](https://github.com/ezSQL/ezSQL/WIKI.md), which is not completely finish.
15+
For an full overview see [documentation Wiki](https://github.com/ezSQL/ezSQL/wiki/Documentation), which is not completely finish.
1916

2017
## Installation
2118

@@ -106,4 +103,4 @@ prepareOff(); // When off shortcut SQL Methods calls will use vendors escape rou
106103

107104
query_prepared(string $query_string, array $param_array);
108105

109-
**For** **[Authors/Contributors](https://github.com/ezsql/ezsql/CONTRIBUTORS.md)**
106+
**For** **[Authors/Contributors](https://github.com/ezSQL/ezSQL/blob/master/CONTRIBUTORS.md)**

WIKI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Any articles referencing WordPress database engine is an good source of what kin
156156

157157
Version 4 of this library attempts to, beside all the additional features, _remove some bad coding styles_, _bring the library to modern coding practices of which_, _follow proper __OOP__ and be __PSR__ compliant_.
158158

159-
This version further break things introduced in version 3 that broke version 2.1.7. See [CHANGE LOG](https://github.com/ezsql/ezsql/CHANGELOG.md)
159+
This version further break things introduced in version 3 that broke version 2.1.7. See [CHANGE LOG](https://github.com/ezSQL/ezSQL/blob/master/CHANGELOG.md)
160160

161161
____Installation and Usage____
162162
---

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ include:
1111
- CODE_OF_CONDUCT.md
1212
- ISSUE_TEMPLATE.md
1313
- PULL_REQUEST_TEMPLATE.md
14+
15+
theme: jekyll-theme-architect

appveyor.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ services:
1818
- mysql
1919
- postgresql
2020

21-
## Cache composer, chocolatey and php bits
22-
cache:
23-
- composer.phar
24-
# Cache chocolatey packages
25-
- C:\ProgramData\chocolatey\bin -> .appveyor.yml
26-
- C:\ProgramData\chocolatey\lib -> .appveyor.yml
27-
# Cache php install
28-
- c:\tools\php -> .appveyor.yml
29-
3021
## Set up environment variables
3122
init:
3223
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;C:\Program Files\PostgreSQL\9.4\bin\;%PATH%
@@ -79,9 +70,9 @@ install:
7970
- IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini
8071
- IF %PHP%==1 echo extension=php_mysqli.dll >> php.ini
8172
- IF %PHP%==1 echo extension=php_pdo_mysql.dll >> php.ini
82-
- IF %PHP%==1 appveyor-retry appveyor DownloadFile https://xdebug.org/files/php_xdebug-2.6.0-7.1-vc14-nts-x86_64.dll -FileName c:\tools\php\ext\php_xdebug-2.6.0-7.1-vc14-nts-x86_64.dll
73+
- IF %PHP%==1 appveyor-retry appveyor DownloadFile https://xdebug.org/files/php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll -FileName c:\tools\php\ext\php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll
8374
- IF %PHP%==1 echo [xdebug] >> php.ini
84-
- IF %PHP%==1 echo zend_extension=php_xdebug-2.6.0-7.1-vc14-nts-x86_64.dll >> php.ini
75+
- IF %PHP%==1 echo zend_extension=php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll >> php.ini
8576
- IF %PHP%==1 echo zend.assertions=1 >> php.ini
8677
- IF %PHP%==1 echo assert.exception=On >> php.ini
8778
- IF %PHP%==1 echo xdebug.remote_enable=1 >> php.ini

tests/mysqli/mysqliTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ public function testQueryInsert()
133133

134134
$this->object->select(self::TEST_DB_NAME);
135135

136-
$this->assertEquals($this->object->query('CREATE TABLE unit_test(id integer, test_key varchar(50), PRIMARY KEY (ID))'), 0);
137-
$this->assertEquals($this->object->query('INSERT INTO unit_test(id, test_key) VALUES(1, \'test 1\')'), 1);
136+
$this->assertEquals(0, $this->object->query('CREATE TABLE unit_test(id integer, test_key varchar(50), PRIMARY KEY (ID))'));
137+
138+
$this->assertEquals(1, $this->object->query('INSERT INTO unit_test(id, test_key) VALUES(1, \'test 1\')'));
138139

139140
$this->object->reset();
140-
$this->assertEquals($this->object->query('INSERT INTO unit_test(id, test_key) VALUES(2, \'test 2\')'),1);
141+
$this->assertEquals(1, $this->object->query('INSERT INTO unit_test(id, test_key) VALUES(2, \'test 2\')'));
142+
141143
$this->object->disconnect();
142-
$this->assertNull($this->object->query('INSERT INTO unit_test(id, test_key) VALUES(3, \'test 3\')'));
144+
$this->assertFalse($this->object->isConnected());
143145
}
144146

145147
/**

0 commit comments

Comments
 (0)