debian/0000755000000000000000000000000011770044616007174 5ustar debian/compat0000644000000000000000000000000211770044616010372 0ustar 8 debian/control0000644000000000000000000000154111770044616010600 0ustar Source: php-mail-mbox Section: php Priority: optional Maintainer: Debian PHP PEAR Maintainers Uploaders: Thomas Goirand Build-Depends: debhelper (>= 8), pkg-php-tools, phpunit (>= 3.6) Build-Depends-Indep: php-pear Standards-Version: 3.9.3 Vcs-Browser: http://git.debian.org/?p=pkg-php/php-mail-mbox.git Vcs-Git: http://git.debian.org/git/pkg-php/php-mail-mbox.git Homepage: http://pear.php.net/package/Mail_Mbox Package: php-mail-mbox Architecture: all Depends: ${misc:Depends}, php-pear, ${phppear:Debian-Depends} Recommends: ${phppear:Debian-Recommends} Breaks: ${phppear:Debian-Breaks} Description: ${phppear:summary} This Mail_Mbox PHP PEAR package can split messages inside a Mbox file, and return the number of messages, return, update or remove an specific message, or add a message on the Mbox. debian/source/0000755000000000000000000000000011770044616010474 5ustar debian/source/format0000644000000000000000000000001411770044616011702 0ustar 3.0 (quilt) debian/tests_run0000755000000000000000000000023711770044616011152 0ustar #!/bin/sh set -e pear_pkg=`ls | grep Mail_Mbox` cd ${pear_pkg} PKG_ROOT=`pwd` cd tests phpunit -d include_path=".:/usr/share/php:${PKG_ROOT}" AllTests.php debian/gbp.conf0000644000000000000000000000016411770044616010614 0ustar [DEFAULT] upstream-branch = upstream-sid debian-branch = debian-sid [git-buildpackage] export-dir = ../build-area/ debian/patches/0000755000000000000000000000000011770044616010623 5ustar debian/patches/series0000644000000000000000000000011111770044616012031 0ustar replaces-deprecated-assertType-by-assertInstanceOf-in-unit-testing.patch debian/patches/replaces-deprecated-assertType-by-assertInstanceOf-in-unit-testing.patch0000644000000000000000000000651711770044616026627 0ustar Description: Replaced deprecated assertType() method by the new assertInstanceOf() in phpunit unit testings Author: Thomas Goirand Forwarded: no --- php-mail-mbox-0.6.3.orig/Mail_Mbox-0.6.3/tests/Mail_MboxTest.php +++ php-mail-mbox-0.6.3/Mail_Mbox-0.6.3/tests/Mail_MboxTest.php @@ -4,7 +4,7 @@ if (!defined("PHPUnit_MAIN_METHOD")) { define("PHPUnit_MAIN_METHOD", "Mail_MboxTest::main"); } -require_once 'PHPUnit/Framework.php'; +require_once 'PHPUnit/Autoload.php'; //make cvs testing work chdir(dirname(__FILE__) . '/../'); @@ -72,7 +72,7 @@ class Mail_MboxTest extends PHPUnit_Fram */ public function testClose() { $this->assertTrue($this->mbox->close()); - $this->assertType('PEAR_Error', $this->mbox->close()); + $this->assertInstanceOf('PEAR_Error', $this->mbox->close()); } /** @@ -93,7 +93,7 @@ class Mail_MboxTest extends PHPUnit_Fram $this->assertContains('somebody@yandex.ru', $msg); $mbox2 = new Mail_Mbox(Mail_MboxTest::$file); - $this->assertType('PEAR_Error', $mbox2->get(0)); + $this->assertInstanceOf('PEAR_Error', $mbox2->get(0)); } /** @@ -189,7 +189,7 @@ class Mail_MboxTest extends PHPUnit_Fram $this->assertTrue($mbox->open()); $err = $mbox->insert('this is not valid', 0); - $this->assertType('PEAR_Error', $err); + $this->assertInstanceOf('PEAR_Error', $err); $this->assertEquals(MAIL_MBOX_ERROR_MSG_INVALID, $err->getCode()); } @@ -233,7 +233,7 @@ class Mail_MboxTest extends PHPUnit_Fram $this->assertTrue($mbox->open()); $err = $mbox->append('this is invalid'); - $this->assertType('PEAR_Error', $err); + $this->assertInstanceOf('PEAR_Error', $err); $this->assertEquals(MAIL_MBOX_ERROR_MSG_INVALID, $err->getCode()); } @@ -291,7 +291,7 @@ class Mail_MboxTest extends PHPUnit_Fram $this->assertTrue($mbox->open()); $err = $mbox->update(0, 'this is invalid'); - $this->assertType('PEAR_Error', $err); + $this->assertInstanceOf('PEAR_Error', $err); $this->assertEquals(MAIL_MBOX_ERROR_MSG_INVALID, $err->getCode()); } @@ -339,15 +339,15 @@ class Mail_MboxTest extends PHPUnit_Fram //This methods should not allow modifying a changed file. $err = $mbox->remove(0); - $this->assertType('PEAR_Error', $err); + $this->assertInstanceOf('PEAR_Error', $err); $this->assertEquals(MAIL_MBOX_ERROR_MODIFIED, $err->getCode()); $err = $mbox->insert('From Test'); - $this->assertType('PEAR_Error', $err); + $this->assertInstanceOf('PEAR_Error', $err); $this->assertEquals(MAIL_MBOX_ERROR_MODIFIED, $err->getCode()); $err = $mbox->update(0, 'From Test'); - $this->assertType('PEAR_Error', $err); + $this->assertInstanceOf('PEAR_Error', $err); $this->assertEquals(MAIL_MBOX_ERROR_MODIFIED, $err->getCode()); $this->assertTrue($mbox->close()); @@ -512,7 +512,7 @@ MBX $mbox = new Mail_Mbox($file); //open without parameter does not create anything $err = $mbox->open(); - $this->assertType('PEAR_Error', $err); + $this->assertInstanceOf('PEAR_Error', $err); $this->assertEquals( MAIL_MBOX_ERROR_FILE_NOT_EXISTING, $err->getCode() ); debian/watch0000644000000000000000000000016211770044616010224 0ustar version=3 http://pear.php.net/package/Mail_Mbox/download http://download.pear.php.net/package/Mail_Mbox-(.*).tgz debian/changelog0000644000000000000000000000023511770044616011046 0ustar php-mail-mbox (0.6.3-1) unstable; urgency=low * Initial release (Closes: #678093). -- Thomas Goirand Tue, 19 Jun 2012 09:14:38 +0000 debian/copyright0000644000000000000000000000232311770044616011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Mail_Mbox Source: http://pear.php.net/package/Mail_Mbox Files: debian/* Copyright: (c) 2012, Thomas Goirand License: LGPL-2 Files: * Copyright: 2006-2009, Roberto Berto (c) 2009, Christian Weiske License: LGPL-2 License: LGPL-2 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU Lesser General Public License (LGPL) may be found in /usr/share/common-licenses/LGPL-2. debian/rules0000755000000000000000000000034111770044616010252 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=phppear --with phppear override_dh_link: dh_link -O--buildsystem=phppear ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) chmod +x ./debian/tests_run ./debian/tests_run endif