@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function testCannotStablishConnectionWhenExists() |
| 69 | 69 | { |
| 70 | 70 | $options = $this->options; |
| 71 | - $options["dbhost"] = 'myserver'; // this server does not exists |
|
| 71 | + $options["dbhost"] = 'myserver'; // this server does not exists |
|
| 72 | 72 | |
| 73 | 73 | $errorObject = null; |
| 74 | 74 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | public function testCannotStablishConnection() |
| 99 | 99 | { |
| 100 | 100 | $options = $this->options; |
| 101 | - $options["dbhost"] = 'myserver'; // this server does not exists |
|
| 101 | + $options["dbhost"] = 'myserver'; // this server does not exists |
|
| 102 | 102 | |
| 103 | 103 | $entity = new MyEntity(); |
| 104 | 104 | $gateway = new TableGateway($entity, ["other" => $options]); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | public function testCannotStablishConnection() |
| 146 | 146 | { |
| 147 | 147 | $options = $this->options; |
| 148 | - $options["dbhost"] = 'myserver'; // this server does not exists |
|
| 148 | + $options["dbhost"] = 'myserver'; // this server does not exists |
|
| 149 | 149 | |
| 150 | 150 | $conn = new MySQL($options); |
| 151 | 151 | |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | $this->assertEquals(2, $conn->getNumFields()); |
| 275 | 275 | $this->assertEquals(0, $conn->getRowsAffected()); |
| 276 | 276 | |
| 277 | - $rowset = $conn->getArrayResult(); # array with results |
|
| 277 | + $rowset = $conn->getArrayResult(); # array with results |
|
| 278 | 278 | $row = array_shift($rowset); |
| 279 | 279 | |
| 280 | 280 | $this->assertArrayHasKey("ID", $row); |
@@ -301,12 +301,12 @@ discard block |
||
| 301 | 301 | $conn->execute($sql); |
| 302 | 302 | $rowcount = count($conn->getArrayResult()); |
| 303 | 303 | |
| 304 | - $this->assertTrue(($rowcount === 1)); # the row is available for now |
|
| 304 | + $this->assertTrue(($rowcount === 1)); # the row is available for now |
|
| 305 | 305 | |
| 306 | 306 | # properties modified by execute() method |
| 307 | 307 | $this->assertEquals(1, $conn->getNumRows()); |
| 308 | 308 | $this->assertEquals(2, $conn->getNumFields()); |
| 309 | - $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 309 | + $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 310 | 310 | |
| 311 | 311 | $this->assertTrue($conn->commit()); |
| 312 | 312 | |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | $conn->execute($sql); |
| 316 | 316 | $rowcount = count($conn->getArrayResult()); |
| 317 | 317 | |
| 318 | - $this->assertTrue(($rowcount === 1)); # the row is available |
|
| 318 | + $this->assertTrue(($rowcount === 1)); # the row is available |
|
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | /** |
@@ -338,12 +338,12 @@ discard block |
||
| 338 | 338 | $conn->execute($sql); |
| 339 | 339 | $rowcount = count($conn->getArrayResult()); |
| 340 | 340 | |
| 341 | - $this->assertTrue(($rowcount === 1)); # the row is available for now |
|
| 341 | + $this->assertTrue(($rowcount === 1)); # the row is available for now |
|
| 342 | 342 | |
| 343 | 343 | # properties modified by execute() method |
| 344 | 344 | $this->assertEquals(1, $conn->getNumRows()); |
| 345 | 345 | $this->assertEquals(2, $conn->getNumFields()); |
| 346 | - $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 346 | + $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 347 | 347 | |
| 348 | 348 | $this->assertTrue($conn->rollback()); |
| 349 | 349 | |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | $conn->execute($sql); |
| 353 | 353 | $rowcount = count($conn->getArrayResult()); |
| 354 | 354 | |
| 355 | - $this->assertNotTrue(($rowcount === 1)); # the row is not available |
|
| 355 | + $this->assertNotTrue(($rowcount === 1)); # the row is not available |
|
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | /** |
@@ -384,12 +384,12 @@ discard block |
||
| 384 | 384 | $conn->execute($sql); |
| 385 | 385 | $rowcount = count($conn->getArrayResult()); |
| 386 | 386 | |
| 387 | - $this->assertTrue(($rowcount === 4)); # the rows are available for now |
|
| 387 | + $this->assertTrue(($rowcount === 4)); # the rows are available for now |
|
| 388 | 388 | |
| 389 | 389 | # properties modified by execute() method |
| 390 | 390 | $this->assertEquals(4, $conn->getNumRows()); |
| 391 | 391 | $this->assertEquals(2, $conn->getNumFields()); |
| 392 | - $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 392 | + $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 393 | 393 | |
| 394 | 394 | $this->assertTrue($conn->commit()); |
| 395 | 395 | |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | $conn->execute($sql); |
| 399 | 399 | $rowcount = count($conn->getArrayResult()); |
| 400 | 400 | |
| 401 | - $this->assertTrue(($rowcount === 4)); # the rows are available |
|
| 401 | + $this->assertTrue(($rowcount === 4)); # the rows are available |
|
| 402 | 402 | } |
| 403 | 403 | |
| 404 | 404 | /** |
@@ -430,12 +430,12 @@ discard block |
||
| 430 | 430 | $conn->execute($sql); |
| 431 | 431 | $rowcount = count($conn->getArrayResult()); |
| 432 | 432 | |
| 433 | - $this->assertTrue(($rowcount === 4)); # the rows are available for now |
|
| 433 | + $this->assertTrue(($rowcount === 4)); # the rows are available for now |
|
| 434 | 434 | |
| 435 | 435 | # properties modified by execute() method |
| 436 | 436 | $this->assertEquals(4, $conn->getNumRows()); |
| 437 | 437 | $this->assertEquals(2, $conn->getNumFields()); |
| 438 | - $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 438 | + $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 439 | 439 | |
| 440 | 440 | $this->assertTrue($conn->rollback()); |
| 441 | 441 | |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | $conn->execute($sql); |
| 445 | 445 | $rowcount = count($conn->getArrayResult()); |
| 446 | 446 | |
| 447 | - $this->assertNotTrue(($rowcount === 4)); # the rows are not available |
|
| 447 | + $this->assertNotTrue(($rowcount === 4)); # the rows are not available |
|
| 448 | 448 | } |
| 449 | 449 | |
| 450 | 450 | /** |
@@ -475,12 +475,12 @@ discard block |
||
| 475 | 475 | $conn->execute($sql); |
| 476 | 476 | $rowcount = count($conn->getArrayResult()); |
| 477 | 477 | |
| 478 | - $this->assertTrue(($rowcount === 2)); # the rows are available for now |
|
| 478 | + $this->assertTrue(($rowcount === 2)); # the rows are available for now |
|
| 479 | 479 | |
| 480 | 480 | # properties modified by execute() method |
| 481 | 481 | $this->assertEquals(2, $conn->getNumRows()); |
| 482 | 482 | $this->assertEquals(2, $conn->getNumFields()); |
| 483 | - $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 483 | + $this->assertEquals(0, $conn->getRowsAffected()); # nothing affected (autocommit = false) |
|
| 484 | 484 | |
| 485 | 485 | # ends the transaction |
| 486 | 486 | $conn->endTransaction(); |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | $conn->execute($sql); |
| 491 | 491 | $rowcount = count($conn->getArrayResult()); |
| 492 | 492 | |
| 493 | - $this->assertTrue(($rowcount === 2)); # the row is available |
|
| 493 | + $this->assertTrue(($rowcount === 2)); # the row is available |
|
| 494 | 494 | } |
| 495 | 495 | |
| 496 | 496 | /** |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | $conn->execute($sql); |
| 535 | 535 | $rowcount = count($conn->getArrayResult()); |
| 536 | 536 | |
| 537 | - $this->assertNotTrue(($rowcount === 0)); # the rows are not available |
|
| 537 | + $this->assertNotTrue(($rowcount === 0)); # the rows are not available |
|
| 538 | 538 | |
| 539 | 539 | # remove all work |
| 540 | 540 | $conn->execute("DROP TABLE MYTABLE"); |