Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
c62abc99
Commit
c62abc99
authored
Feb 14, 2008
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a stub to test the methods that throw exceptions in order to get 100% coverage
parent
b040bbe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
AccessTest.php
tests/Orm/Component/AccessTest.php
+41
-0
No files found.
tests/Orm/Component/AccessTest.php
View file @
c62abc99
...
...
@@ -147,4 +147,45 @@ class Orm_Component_AccessTest extends Doctrine_OrmTestCase
}
/**
* @test
* @expectedException Doctrine_Exception
*/
public
function
shouldNotBeAbleToUseContainsWhenNotImplemented
()
{
$stub
=
new
AccessStub
();
isset
(
$stub
[
'foo'
]);
}
/**
* @test
* @expectedException Doctrine_Exception
*/
public
function
shouldNotBeAbleToUseSetWhenNotImplemented
()
{
$stub
=
new
AccessStub
();
$stub
[
'foo'
]
=
'foo'
;
}
/**
* @test
* @expectedException Doctrine_Exception
*/
public
function
shouldNotBeAbleToUseUnsetWhenNotImplemented
()
{
$stub
=
new
AccessStub
();
unset
(
$stub
[
'foo'
]);
}
/**
* @test
* @expectedException Doctrine_Exception
*/
public
function
shouldNotBeAbleToUseGetWhenNotImplemented
()
{
$stub
=
new
AccessStub
();
$stub
[
'foo'
];
}
}
class
AccessStub
extends
Doctrine_Access
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment