Skip to content

Commit

Permalink
Updated version constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Apr 29, 2017
1 parent c70043a commit cb759e1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"description": "LeanMapper extension for Nette DI",
"require": {
"php": ">=5.3.0",
"nette/di": "~2.2",
"tharos/leanmapper": "~2.2"
"nette/di": "^2.2",
"tharos/leanmapper": "^2.2 || ^3.0"
},
"require-dev": {
"nette/tester": "~1.2",
"nette/bootstrap": "~2.2",
"tracy/tracy": "~2.2"
"nette/bootstrap": "^2.2",
"tracy/tracy": "^2.2"
},
"license": "BSD-3",
"autoload": {
Expand Down
24 changes: 20 additions & 4 deletions tests/LeanMapperExtension/classes.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
<?php

class DibiFakeMySqlDriver extends DibiMySqlDriver
{
public function __construct()
{
namespace {
if (class_exists('DibiMySqlDriver')) {
class DibiFakeMySqlDriver extends DibiMySqlDriver
{
public function __construct()
{
}
}
}
}


namespace Dibi\Drivers {
if (class_exists('Dibi\Drivers\MySqlDriver')) {
class FakeMySqlDriver extends MySqlDriver
{
public function __construct()
{
}
}
}
}

0 comments on commit cb759e1

Please sign in to comment.