This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

removed leftover from last commit

  • Loading branch information...
1 parent 3328647 commit 5e78e95228131b3af8f107a2bdd60a48193a57d3 @everzet everzet committed May 29, 2012
Showing with 0 additions and 43 deletions.
  1. +0 −43 tests/Behat/Mink/PHPUnit/TestCaseTest.php
@@ -1,43 +0,0 @@
-<?php
-
-namespace Test\Behat\Mink\PHPUnit;
-
-use Behat\Mink\PHPUnit\TestCase,
- Behat\Mink\Session;
-
-/**
- * @group unittest
- */
-class TestCaseTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @covers Behat\Mink\PHPUnit\TestCase::assertPageContainsText
- * @expectedException PHPUnit_Framework_ExpectationFailedException
- */
- public function testAssertPageContainsTextFail()
- {
- $page = $this->getMock('stdClass', array('getText'));
- $page->expects($this->any())->method('getText')->will($this->returnValue('foo bar baz'));
-
- $session = $this->getMockBuilder('Behat\Mink\Session')->setMethods(array('getPage'))->
- disableOriginalConstructor()->getMock();
- $session->expects($this->any())->method('getPage')->will($this->returnValue($page));
-
- TestCase::assertPageContainsText($session, 'bad');
- }
-
- /**
- * @covers Behat\Mink\PHPUnit\TestCase::assertPageContainsText
- */
- public function testAssertPageContainsTextSuccess()
- {
- $page = $this->getMock('stdClass', array('getText'));
- $page->expects($this->any())->method('getText')->will($this->returnValue('foo bar baz'));
-
- $session = $this->getMockBuilder('Behat\Mink\Session')->setMethods(array('getPage'))->
- disableOriginalConstructor()->getMock();
- $session->expects($this->any())->method('getPage')->will($this->returnValue($page));
-
- TestCase::assertPageContainsText($session, 'bar');
- }
-}

0 comments on commit 5e78e95

Please sign in to comment.